PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
Methods of a class that provide access to private members of the class are called as ______ and ______
A. getters/setters
B. __repr__/__str__
C. user-defined functions/in-built functions
D. __init__/__del__
Show Answer
Next Question
Correct Answer:
A
Explanation: The purpose of getters and setters is to get(return) and set(assign) private instance variables of a class.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap