what is the difference between class and object?

Answer Posted / p.madhupriya

object is real world entity.
class is a collection of objects and member function .

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is enum a class?

596


Why do we use class?

620


Why is destructor used?

574


What is the advantage of oop over procedural language?

617


Why multiple inheritance is not allowed?

578






What is abstraction in oops with example?

759


Can we have inheritance without polymorphism?

600


What is oops and why we use oops?

564


What is polymorphism and its types?

585


What is polymorphism explain its types?

666


What is class encapsulation?

581


Is data hiding and abstraction same?

561


Is abstract thinking intelligence?

583


What is oops in simple words?

569


Why is polymorphism needed?

581