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 is oop useful?
Is this job good for future? can do this job post grduate student?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is inheritance in oop?
Is data hiding and abstraction same?
What is pure oop?
Who invented oop?
What is encapsulation in oop?
What is super in oop?
what are the ways in which a constructors can be called?
What does and I oop and sksksk mean?
Why interface is used?
What is oops in simple words?
Explain the advantages of inheritance.
What is pointer in oop?