Half-Day Online Pilot Workshop on AutoDock4 on 9 August 2024, 2:00 pm to 5.30 pm. Click here to register.

Creating object - English

24834 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