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

Why do we use oop?

593


Why is object oriented programming so hard?

605


class type to basic type conversion

1830


What is polymorphism and example?

583


What is overriding vs overloading?

573






Why is abstraction needed?

557


What is an advantage of polymorphism?

583


What is encapsulation c#?

594


Which language is pure oop?

543


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1644


what is difference between class template and template class?

2149


Can we have inheritance without polymorphism?

600


What is the example of polymorphism?

550


What is property in oops?

555


What is a class and object?

587