Multiple choice

Which of the following is the valid class declaration header for the derived class A with base classes B and C?

  1. Class A : public B, public C

  2. Class A : public B, class C

  3. Class A : public B, C

  4. Class A : public B public C

  5. Class A : B C

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct declaration according to syntax rule.