Multiple Choice
Which of the following is correct syntax to declare C++ class B to be a public base class for derived class D
A) public base class B: class D {/*…*/};
B) class D : public class B {/* … */};
C) class D : public B {/* … */};
D) class B: public D { };
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q20: An inheritance chain of any desired length
Q21: If class D is derived from class
Q22: The class D inherits from base class
Q23: Deriving a class from a base class
Q24: If class D is derived from class
Q25: Suppose class Child is derived from class
Q26: You never put a declaration of an
Q28: An object of a derived class type
Q29: If class D is derived from class
Q30: A programmer must have the source code