Does this code contain compilation errors?

class A {
  static void Foo();
};

static void A::Foo() { }
Explanation
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
Cosmo
Sign Up Now
or Subscribe for future quizzes