Question OOP-ENC-0027
EasyIn Python, what does a single leading underscore, as in _total, signal?
- A.
The attribute is a constant
- B.
The attribute is static
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Encapsulation question
In Python, what does a single leading underscore, as in _total, signal?
The attribute is a constant
The attribute is static
Sign up free to see the answer and a step-by-step explanation.
The attribute is meant for internal use, by convention only
The attribute is truly private and cannot be accessed