Object

Object:
 
 Object is a instance of the class. This has both state and behavior. memory for the data members          are allocated when you create a object.


Syntax:         Classname Objectname= new classname( );

EX:  Class Example
          {
                 \\code
                   
                  }
      Example e=new Example();

No comments:

Post a Comment