Vidyalelo
Python · Q41

Concept of Object Oriented Programs in Python

Programming · Python · question 41

Q41

Which of the following is the most suitable definition for encapsulation?

A.
Ability of a class to derive members of another class as a part of its own definition
B.
Means of bundling instance variables and methods in order to restrict access to certain class members
Answer
C.
Focuses on variables and passing of variables to functions
D.
Allows for implementation of elegant software that is well designed and easily modified

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board