Does this code contain compilation errors?

class A {
  static void Foo();

static void A::Foo() { }
static modifier can not be used to define class members outside of the class declaration.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Sign Up Now
or Subscribe for future quizzes