what is difference between class and object?

Answer Posted / kabita

class is a blueprint/framework which has no physical
existance and it is collection of similar properties and
behaviour of objects.
object is nothing which has physical existance, own
behaviour and properties.
it is also known as instance of class.
ex:Employee is a class and ram is aobject of this class.

Is This Answer Correct ?    42 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a function argument in java?

509


In a class implementing an interface, can we change the value of any variable defined in the interface?

547


how to run ecllipse with jettyserver for windows environment using batch file

1484


Does constructor creates the object ?

576


What is high level language in computer?

528






What are bind parameters?

538


What is array list in java?

584


What is finalize()? Is finalize() similar to a destructor?

531


Why do we need wrapper classes?

566


What is the difference between method and means?

568


What is a stringbuffer?

506


what are the states associated in the thread? : Java thread

580


What is the method to expand and collapse nodes in a jtree?

603


What are the disadvantages of object oriented programming?

585


What are keywords in java?

570