Unlock the Power of Open Source! The " Linux New " SWAYAM Plus Course is live now and about 2,500 learners have already registered for it.

If you are a registered learner, the forum page is now active. Visit the page and get all your questions answered.

Creating object - English

This is a sample video. To access the full content,
please Login

28462 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