Which of the following is true about inheritance?

A. All public member functions of the base class become the public member functions of the derived class.
B. All public member variables of the base class become the public member variables of the derived class.
C. All public members of the base class become the public members of the derived class.
D. The public member variables of the base class become the public or private member variables of the derived class.

Answer: D

Computer Science & Information Technology

You might also like to view...

Soft skills are specific, measurable skills such as configuring and troubleshooting systems

Indicate whether the statement is true or false

Computer Science & Information Technology

To design a recursive function, you must determine the limiting conditions.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology