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.
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback