Creating object - English

25460 visits



Outline:

Creating Object *An object is an instance of a class *Each object consist of state and behavior *Object stores it state in fields or variables *It exposes its behavior through methods *Reference variables *Create a class named TestStudent *Create an object of the Student class *Use new operator *Check what the reference variable contains *Create one more object of the Student class and check what the reference variable contains