Question OOP-ENC-0026
EasyWhat is a class's public interface?
- A.
The methods (and any fields) that other code is allowed to use
- B.
Its private fields
- 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
What is a class's public interface?
The methods (and any fields) that other code is allowed to use
Its private fields
Sign up free to see the answer and a step-by-step explanation.
Its file name
Its comments