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

C++ supports both classes and structures. Which of the following statements is FALSE in respect of both of them?

  1. Both can have variables and functions as members.
  2. In both, the members are private by default
  3. They support inheritance
  4. Their names can be used like any other types names



Answer: 
Option b:In both, the members are private by default

Explanation Here

Post a Comment

0 Comments