Object Oriented Programming(OOP)
- It is one of an approach
that come into existence in the 70’s for developing the applications in place
of procedural programming approach.
- OOP is most successful
approach that was available in the industry used for building applications with
the main feature like security and reusability.
- A language to be called
as object oriented needs to satisfy 4 important principal like
- Encapsulation: Hiding
the data
- Abstraction: Hiding the complexity
- Inheritance: Reusability
- Polymorphism: Multiple
behaviour based on input.
- Encapsulation : It is an approach of
hiding the data by wrapping it under a container known as class which provides
the basic security for its members.
- Abstraction : It is an approach of
hiding the complexity of the member and providing with the set of interfaces to
consume the functionality. Functions and methods one a good example for
abstraction because in both these cases we call a function or a method without
knowing the underlying logic.
- Inheritance : It is an approach of the
children reusing the property of their parents. That provides reusability. We
can implement the same in our language by establishing parent child
relationship between the classes so that child classes can consume the member of it
parent class.
- Polymorphism : It is an approach of
behaving in different way depending upon the received input that is wherever the
input changes automatically the output or behavior also change accordingly.
No comments:
Post a Comment