What is a nested class?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is a nested class?

Rating:

A class defined within the body of another class is known as a nested class, and the class that encloses it is known as its enclosing class. The scope of a nested class is bounded by the scope of its enclosing class. A nested class has unlimited access to the members of its enclosing class, even if they are declared as private. However, the enclosing class does not have access to the members of the nested class. When a nested class is declared as static, it is called a static nested class. Otherwise, it is called an inner class.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.