- Object Oriented Programming focuses
on developing the software based on their component objects.
- The components interact with each
other to provide the functionality of the software.
- Each component consist of data and
methods that operate on the data.
- The components are complete by
themselves and are reusable.
- The commonly used terms in OOP are
Class, Object, Abstraction, Encapsulation and Polymorphism.
Class:
A class is a model for crating object. class
is a user defined datatype
Object:
an object is a runtime instance of a class. An object will have state and
behavior.
Abstraction:
Hiding internal details and providing essential information.
Encapsulation:
Wrapping up of data and functions into a single unit. We achieve data hiding
Inheritance:
The reusability concept where a sub class deriving the properties of super
class.
Polymorphism:
the ability to take more than one form
No comments:
Post a Comment