What is the main difference between a class and an object?



What is the main difference between a class and an object?..

Answer / Deepak Malik

'Class' is a blueprint or template for creating objects, while 'Object' is an instance of a class. A class describes what properties and methods an object has, but it does not actually exist until an object is created from that class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

What is data abstraction? what are the three levels of data abstraction with Example?

1 Answers   TCS,


What is difference between encapsulation and abstraction?

1 Answers  


What is inheritance in java?

3 Answers  


What is data encapsulation and what is its significance?

1 Answers  


Explain serialization and overriding?

1 Answers   Motorola,


Which oops concept is used as reuse mechanism?

1 Answers  


Can an interface inherit from another interface?

1 Answers  


What is the use if instanceof keyword?

1 Answers  


What is method overriding?

1 Answers  


What is a final variable?

1 Answers  


What is polymorphism and abstraction?

1 Answers   Agilent, Integreon, ZS Associates,


What are base class, sub class and super class?

1 Answers  


Categories