Creating object - Manipuri

Play
Current Time 0:00
/
Duration Time 0:00
Remaining Time -0:00
Loaded: 0%
Progress: 0%
0:00
Fullscreen
00:00
Mute
Captions
  • captions off
  • English

340 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