If the member variables in a base class are private, then
A) they can be directly accessed or changed in the derived class
B) the derived class must use any accesssor or modifier functions from the base class
C) making them private causes a syntax error.
D) you must declare them in the derived class also.
Correct Answer:
Verified
Q35: Which of the following are true?
A) constructors
Q36: If a base class has a public
Q37: Using inheritance allows us to
A) eliminate duplicate
Q38: When deriving a class, you should
A) list
Q39: Another name for the base class is
A)
Q41: If a base class has a virtual
Q42: If you have a copy constructor in
Q43: If a base class has a non-virtual
Q44: If a derived class Class2) has redefined
Q45: Given the following classes and code, what
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents