what is the difference between class and object?

Answer Posted / walking legend

I would like to explain the concept of class and object
with an example for easy understanding
consider a person 'x' has designed a car drawing the
model on a paper on computer using a software
class:this blue print is called class.
object:if a car is manufactured based on the blue print
it is one of the object created for that
particular class.

Is This Answer Correct ?    15 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction in oop with example?

647


Advantage and disadvantage of routing in telecom sector

790


write a C++ program for booking using constructor and destructor.

2055


Can main method override?

587


How many human genes are polymorphic?

577






Can destructor be overloaded?

602


What is the difference between encapsulation and polymorphism?

598


What is the difference between abstraction and polymorphism?

619


Give two or more real cenario of virtual function and vertual object

1858


What is encapsulation with example?

583


What does and I oop mean?

620


What is object in oop with example?

707


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1460


What is oops with example?

566


What is encapsulation c#?

603