You are on page 1of 2

c:- procedural oriented programming (pop)

main()
{
-
-
-
-
-
}
cpp:- object oriented programming system(oops)

defintion:-

what is class:- class is combination of state and behavior.


class is conceptual repersention of objects.

what is object:- object is an instance of the class.


each and everything is an object.
touch/see

pen

car

tv

lcd

mobile

categorized in class
(Automobile)

bike,Car,generator is an object

(stationary)class three in one copy/drawing

pen,pencil,eraser,copy is an object

plastic

car car
swift(still) swift(still)
start() start()

a object having three characterstic:-


state:- still
behavior:- move,start,stop: behavior perfom
identity:-number

what is class?
what is a objects?
up

|
bottom

You might also like