C++ MQCs with Explanation (CHAPTER 5: CLASSES AND OBJECTS

Which one of the following statements is FALSE?

  1. A member function defined outside can be made inline using the qualifier inline.
  2. An object of a class can access all its member functions whether they are declared private or public
  3. A member function can be called by using its name alone inside another member function.
  4. A private member function can only be called by another function that is a member of its class.



Answer: 
Option b: An object of a class can access all its member functions whether they are declared private or public

Explanation Here

Post a Comment

0 Comments