Home Java Master-java Member Classes



Member Classes
Posted on: June 16, 2009 at 12:00 AM
The class defined in the body of a class is called a member class.

Member Classes

     

The class defined in the body of a class is called a member class. Member classes can also use instances of the same class without explicit delegation. Only the member classes can be declared as static.

Local classes

Local classes are similar to the local initializer that are declared inside the block of code of  a program. Local classes are rarely defined within a method of a class. The local classes can be instantiated many times whenever required. Local classes includes the all the features of a member class.

Related Tags for Member Classes:
cclassstaticioclassesinstancewithmemberdelegationsseciexpliciteitlscanliuseceinasstamoutcaclesdeclarewithoutemmeinstancessamessodelatarstatsaxpssamssamthstatieclgagatlsoplonlyononl


More Tutorials from this section

Ask Questions?    Discuss: Member Classes  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.