Answer Posted / vineet makkar
The answer to this question lies in the basic difference
between
OBJECT & INSTANCE
INSTANCE : Refers to a reference of an object, it can be
null.
OBJECT: Actually pointing to the memory address of that
instance.
eg
Student stdnt; // Instance is created
Student stdnt = new Student; // Object is created
So, in short, memory is allocated to a class when the
object of the class is created using "new" keyword.
| Is This Answer Correct ? | 26 Yes | 3 No |
Post New Answer View All Answers
Why polymorphism is used in oops?
What is abstraction in oops?
Can a destructor be called directly?
What is class and object in oops?
What is abstract class in oop?
What is the difference between a mixin and inheritance?
What is the use of oops?
What is destructor oops?
What are the components of marker interface?
What is polymorphism used for?
what is the sylabus for priliminaries?
Explain virtual inheritance?
What is static modifier?
What are two types of polymorphism?
Is enum a class?