Which of these is a mechanism for naming and visibility control of a class and its content?
A. Object
B. Packages
C. Interfaces
D. None of the Mentioned.
Answer:A
Which of these is a mechanism for naming and visibility control of a class and its content?
A. Object B. Packages C. Interfaces D. None of the Mentioned.
Explanation: Packages are both naming and visibility control mechanism. We can define a class inside a package which is not accessible by code outside the package.