The term
‘object-oriented’ means that we organize software as a collection of discrete
objects that incorporate both data structure and behaviour are only loosely
connected .
An object
oriented approach generally include for aspects: they are :
a)Identity
b)Classification
c)Polymorphism
d)Inheritance
a)Identity:-
means that data is quantized into discrete distinguishable entities called
objects. A paragraph in a document , a window on my workstation and the white
queen in a chess game are examples of objects. Objects can be concrete or
conceptual . Two objects are distinct even if all their attributes values are
identical.
b)
Classification : means that object with the same data structure (attributes)
and behavior are grouped in to a class . fruits ,vegetable and furniture’s are
example of class. A class is an abstraction that describes properties
important to an application and ignores
the rest. Each objects is said to be an instances of its class.
c)Polymorphism:-means
that the same operation may behave differently on different classes.
d)Inheritances:-
is sharing of attributes and operation among classes based on a hierarchical
problems.
No comments:
Post a Comment