Object Oriented Programming In C Plus Plus - Study Mode

[#41] Which keyword is used to access the base class members from a derived class in C++?
Correct Answer

(D) base

[#42] What is operator overloading in C++?
Correct Answer

(B) Defining multiple functions with the same name but different arguments

[#43] What is the purpose of a destructor in C++?
Correct Answer

(C) To clean up resources before an object is destroyed

[#44] Which access specifier allows a member to be accessible only within its own class and derived classes in C++?
Correct Answer

(D) protected

[#45] Wrapping data and its related functionality into a single entity is known as . . . . . . . .
Correct Answer

(B) Encapsulation