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
What is inheritance and how many types of inheritance?
What is methods in oop?
What is polymorphism used for?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What does enum stand for?
Can abstract class have normal methods?
How Do you Code Composition and Aggregation in C++ ?
What is meant by oops concept?
Why oops is important?
What is polymorphism in oops with example?
Who invented oop?
write a program that takes input in digits and display the result in words from 1 to 1000
Is oop better than procedural?
What is class and object in oops?
Where You Can Use Interface in your Project