Building Blocks of
Object Oriented
Technology
By: Kahf Ul Huda
Building Blocks
Abstraction
Encapsulation
Modularity
Hierarchy
Abstraction
 Abstraction is selecting data from a larger pool to show
only the relevant details of the object to the user.
 Shows only the essential attributes
 Hides unnecessary information.
 reduce programming complexity and effort.
Example
Essential
Roll-No
Name
Class
Student
Not-Essential
Height
Weight
Shoe size
Encapsulation
 Hides implementation.
 Restricts external entities to the interface.
 Binds both attributes and methods together within one
class.
Modularity
 Modularity means breaking up something complex into
manageable units.
 Modularity helps you to understand the complex systems.
 Diagram:
Hierarchy
 “IS–A” hierarchy −
 It defines the hierarchical relationship in inheritance,
whereby from a super-class, a number of subclasses may
be derived which may again have subclasses and so on.
 For example, if we derive a class Rose from a class Flower,
we can say that a rose “is–a” flower

Building blocks of object oriented technology