what is difference between class and object?
Answer Posted / devarathnam c,kotagudibanda(po
Hi... Class is a blue print of an object,which is non-live
entity.
Object is instance of class,which is a live entity.
example: Employee is a class
Fruit is a class
but
DEVARATHNAM is an object
ROSE is an object
Is This Answer Correct ? | 99 Yes | 39 No |
Post New Answer View All Answers
What is gc()?
How many bits is a string?
Should you use singleton pattern?
How garbage collection is done in java?
What is map in java?
Can we override static methods in java?
Explain when we should make an instance variable private.
What is passing parameters in java?
What are the methods of object class ?
Difference difference paint() and paintcomponent()?
What is the difference between an array and an array list?
What are constructors in java?
What is the default value of float and double datatype in java?
Why are global variables used?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?