Professional Documents
Culture Documents
Fundamentals of Object-Oriented Programming Language
Fundamentals of Object-Oriented Programming Language
OBJECT-ORIENTED
PROGRAMMING LANGUAGE
PREPARED BY:
Abstraction
Encapsulation
Inheritance
Polymorphism
ABSTRACTION
In object –oriented
programming, abstraction
is one of three central
principles. Through the
process of abstraction, a
programmer hides all but
relevant data about an
object in order to reduce
complexity and increase
efficiency.
Encapsulation
Encapsulation may also refer to a mechanism
of restricting the direct access to some
components of an object, such that users
cannot access state values for all of the
variables and a particular object. Encapsulation
can be used to hide both data members and
data functions or methods associated with an
instantiated class or object.
Inheritance
An objector class being based on another
object or class, using the same
implementation or specifying a new
implementation the same behavior.
Inheritance can help us to represent objects
which have some differences and some
similarities in the way they work. We can put
all the functionality that the objects having
common in a base class, and then define one
or more subclasses with their own custom
functionality.
POLYMORPHISM
Polymorphism is a feature of object
programming languages that allows a
specific routine to use variables of
different types at different times.
Polymorphism is the ability of
programming language to present the
same interface for several different
underlying data types.
THANK YOU!