What code fragments will not cause a compilation error when inserted into string (1) independently of each other?
struct A {
  // (1)
(a) - does not fit, because the constructor cannot be static.
(b) - the constructor cannot be constant
(c) - the method cannot be both static and constant
(d) - virtual functions cannot be static
(e) - is compiled, A::Foo() is a virtual constant method

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes