java-ut-i-part-iii
java-ut-i-part-iii
Responsibilities
In object-oriented programming, behaviors of an object described in terms of responsibilities.
In our example, my request for action indicates only the desired outcome (food delivered to
my family).
The agent (zomato) free to use any technique that solves my problem.
By discussing a problem in terms of responsibilities increases the level of abstraction. This
enables more independence between the objects in solving complex problems.
Classes Hierarchies
A graphical representation is often used to illustrate the relationships among the classes
(objects) of a community.
This graphical representation shows classes listed in a hierarchical tree-like structure. In this
more abstract class listed near the top of the tree, and more specific classes in the middle of
the tree, and the individuals listed near the bottom.