Question OOP-ENC-0058
MediumWhat is the main purpose of a package (Java) or namespace (C++) regarding encapsulation?
- A.
Making classes faster
- B.
Creating objects
- 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 the main purpose of a package (Java) or namespace (C++) regarding encapsulation?
Making classes faster
Creating objects
Sign up free to see the answer and a step-by-step explanation.
Handling exceptions
Grouping related classes and controlling visibility at a larger scale