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 encapsulation used?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Explain the concepts involved in Object Oriented programming.
What is difference between abstraction and encapsulation?
What is polymorphism and example?
What is polymorphism explain?
Why is abstraction used?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is object in oop with example?
What is abstraction oop?
Can you explain polymorphism?
What are the data types in oop?
What is encapsulation oop?
explain sub-type and sub class? atleast u have differ it into 4 points?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?