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 polymorphism and its types?

691


What is overriding in oops?

705


What is polymorphism oop?

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.

1558


What is destructor oops?

712






What is stream in oop?

939


Can you inherit a private class?

734


Get me a number puzzle game-program

1783


What is encapsulation process?

670


What is the use of oops?

694


what are the different types of qualifier in java?

1919


What is encapsulation c#?

696


What is the real time example of inheritance?

722


How do you answer polymorphism?

667


Can a varargs method be overloaded?

702