C++ MQCs with Explanation. (CHAPTER 1:PRINCIPLES OF OBJECT – ORIENTED PROGRAMMING)

Encapsulation ensures that?

  1. function in the program can access the data
  2. External functions cannot access an object’s nonpublic data
  3. external functions cannot access any data of the object
  4. the data of the object is never modified



Answer: 
Option e: external functions cannot access an object’s nonpublic data

Explanation Here

Post a Comment

0 Comments