Class

Class
Β 
isΒ 
aΒ 
modelΒ 
orΒ 
aΒ 
blueprintΒ 
ofΒ 
anΒ 
objectΒ 
inΒ 
realΒ 
life.Β 
For
Β 
eg
.Β 
Car,Β 
Person,Β 
etc

Object/Instances

Objects
Β 
areΒ 
createdΒ 
fromΒ 
aΒ 
Class
.Β 
TheyΒ 
areΒ 
theΒ 
collectionΒ 
ofΒ 
data
Β 
(variables)Β 
andΒ 
methods
Β 
(functions)Β 
thatΒ 
actΒ 
onΒ 
thoseΒ 
variables.
MultipleΒ 
ObjectsΒ 
canΒ 
beΒ 
createdΒ 
fromΒ 
theΒ 
sameΒ 
class.Β 
For
Β 
example
,Β 
aΒ 
classΒ 
CarΒ 
canΒ 
haveΒ 
objectsΒ 
likeΒ 
Maruti,Β 
Honda,Β 
etc.
ObjectsΒ 
areΒ 
createdΒ 
byΒ 
givingΒ 
detailsΒ 
(attributes)Β 
toΒ 
aΒ 
model(class).

Attributes

Attributes
Β 
areΒ 
theΒ 
variablesΒ 
usedΒ 
insideΒ 
aΒ 
class,Β 
thatΒ 
describeΒ 
theΒ 
real-lifeΒ 
object.Β 
For
Β 
example
,Β 
aΒ 
classΒ 
CarΒ 
canΒ 
haveΒ 
attributesΒ 
likeΒ 
theΒ 
model,Β 
color,Β 
price,Β 
etc.

Methods

AΒ 
functionΒ 
createdΒ 
insideΒ 
aΒ 
classΒ 
isΒ 
calledΒ 
aΒ 
method
.
ForΒ 
example,Β 
ClassΒ 
carΒ 
canΒ 
haveΒ 
methodsΒ 
likeΒ 
start()
,Β 
stop()
,Β 
brake()
,Β 
park()
,Β 
etc.