Classes And Objects In C Plus Plus - Study Mode

[#131] What is the term for a function that is declared inside a class but defined outside of it in C++?
Correct Answer

(C) Member function

[#132] What is the process of wrapping data and functions into a single unit called in C++?
Correct Answer

(D) Encapsulation

[#133] What is the purpose of the 'this' pointer in C++?
Correct Answer

(C) Pointer to the current object instance

[#134] What is the purpose of using constructors in C++?
Correct Answer

(C) To initialize the object's data members

[#135] What is a constructor in C++?
Correct Answer

(D) A special member function that initializes objects