Single Choice Easy

QWhich of the following principle does not allow to access data directly from outside the class premises?

ID: #22203 Basic Concept of OOP 94 views
Question Info
#22203Q ID
EasyDifficulty
Basic Concept of OOPTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A data hiding
  • B encapsulation
  • C abstraction
  • D all of the above
Correct Answer

Explanation

In OOP, data hiding, encapsulation, and abstraction are principles that work together to protect data within a class from direct access from outside the class. This is achieved through the use of access modifiers and by providing methods to interact with the data.

Share This Question

Challenge a friend or share with your study group.