unit 5
unit 5
function (behavior)
function 1
function 2
…………….
…………….
function n
ii. Class: A class is the collection of similar objects. It is defined as the
template to define the common attributes and behavior for all the objects of
the class.
E.g. class fruit
object1 banana
object2 apple
object3 pine apple
………………..
object n strawberry
END of UNIT 5