Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 8)
8.
How can encapsulation be achieved?
By using public access specifiers for all class members
By allowing unrestricted access to the internal details of an object
By using access specifiers to control access to class members
By avoiding the use of classes and objects
Answer: Option
Explanation:
Encapsulation in Python can be achieved by using access specifiers, such as private, protected, and public, to control access to class members.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.