Inheritance In C Plus Plus - Study Mode

[#1] In C++, which type of inheritance allows a class to inherit properties and behavior from multiple base classes?
Correct Answer

(C) Multiple inheritance

[#2] What is the access specifier that restricts access to members of a class to only its derived classes in C++?
Correct Answer

(D) protected

[#3] What is the process of defining a new class based on an existing class in C++ called?
Correct Answer

(A) Inheritance

[#4] Which keyword is used to signify inheritance in C++?
Correct Answer

(D) : public

[#5] In C++, which access specifier allows members of a base class to be accessible in the derived class but not to the outside world?
Correct Answer

(D) protected