Introduction :
A class is nothing but a blue print for Java object. It is the logical representation of object. An Object is physical form of class. The syntax for representing a class in Java consists of many elements :
General Syntax of Class Declarations in Java
A class is nothing but a blue print for Java object. It is the logical representation of object. An Object is physical form of class. The syntax for representing a class in Java consists of many elements :
General Syntax of Class Declarations in Java
< class modifiers > class < class name > < type parameter list > < extends clause > < implements clause > { // body of class < field declarations > < method declarations > < nested class declarations > < nested interface declarations > < nested enum declarations > < constructor declarations > < initializer blocks > }