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


Please Help Members By Posting Answers For Below Questions

What is gc()?

577


How many bits is a string?

523


Should you use singleton pattern?

521


How garbage collection is done in java?

546


What is map in java?

514






Can we override static methods in java?

581


Explain when we should make an instance variable private.

606


What is passing parameters in java?

513


What are the methods of object class ?

561


Difference difference paint() and paintcomponent()?

530


What is the difference between an array and an array list?

500


What are constructors in java?

563


What is the default value of float and double datatype in java?

532


Why are global variables used?

499


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?

3780