Theory of class – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-ICSE2017-03C #JAVA#7235    siteicon   siteicon  

Problem Statement - Theory of class

Why is an object called an instance of a class ?

Solution

TC++ #7235

An object is called an instance of a class as every object created from a class gets its own instances of the variables defined in the class. Multiple objects can be created from the same class. Thus different values can be put in the variables of same name in different instances.

Notes

  • As multiple instances can be made from a class, sometimes class is also called an Object Factory.


Share

CSKC| Created: 15-Apr-2019 | Updated: 27-Nov-2019|ICSE2017









Back