Question OOP-ENC-0032
EasyWhich statement about a class's private members is true?
- A.
They can be used inside the class's own methods
- B.
They cannot be used at all
- 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
Which statement about a class's private members is true?
They can be used inside the class's own methods
They cannot be used at all
Sign up free to see the answer and a step-by-step explanation.
They are shared by all classes
They can be used anywhere in the program