difference between class and object
Answer Posted / rajdeep gupta
class in a keyword to create user define data type.it is
only on logical perception .it is collection of similar
types of variable.
object is a variable of class type .there is no meaning of
class without creating object.object is made at run time on
the heap portion of ram
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is ambiguity in inheritance?
What is an example of genetic polymorphism?
What are the 4 main oop principles?
Give two or more real cenario of virtual function and vertual object
Is this job good for future? can do this job post grduate student?
Advantage and disadvantage of routing in telecom sector
What is abstraction and encapsulation?
What is for loop and its syntax?
What is new keyword in oops?
How Do you Code Composition and Aggregation in C++ ?
How do you achieve runtime polymorphism?
What do you mean by abstraction?
Why do we need polymorphism in c#?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }