SAGAR INSTITUTE OF RESEARCH AND
TECHNOLOGY AND SCIENCE
Presentation on - OOPS
Presentation by-
Abhishek kumr
01234321
CSE/3rd
What is OOP?
Object Oriented Programming (OOP)
is a programming technique in which
programs are written on the basis of objects.
Examples:
C++
PHP
Java
Classes And Objects
Classes(Classification Of Objects)
A class is a group of objects with same
attributes and behavior.
A class is user define derived class that
combines both data and function and function
and manipulate the data.
What is Object?
Object is a class type variable. Objects are also called
instance of the class. Each object contains all
members(variables and functions) declared in the class :
Identity
State
Behaviour
Benefits Of OOP
Reusability
Extensibility
Decomposability
Compos ability
Understandability
Security
Characteristics Of
OOP
Characteristics Of OOP
Inheritance
Data Abstraction
Data Encapsulation
Polymorphism
Inheritance
Inheritance
A programming technique that is used to reuse
an existing class to build a new classis known as
inheritance.
Categories Of Inheritance
5 levels of inheritance -
-Single level
-Multilevel
-Multiple
-Hierarchical
-Hybrid
Types of Inheritance
SINGLE INHETANE :-
Flower BASE CLASS
Rose SUB CLASS
When a sub class inherit the property from only one
base class, then it is known as Single Inheritance
Multi Level Inheritance
When a sub class inherit the property from the class that itself
inherit from another class , then it is known as Multi Level
Inheritance.
Multiple Inheritance
Base Class Parrot Pigeon
Derived Bird
Multiple
When a sub class inherit the property from several base class,
then it is known as multiple inheritance.
Hierarchical Inheritance
B C D
E F G H
When several sub class inherit the property from single base class, then it is
known as hierarchical inheritance.
Hybrid
World
In hybrid inheritance several inheritance forms
Are combined. India
Rajasthan
Jaipur
Data Abstraction
Data Abstraction
Data abstraction or information hiding refers to
providing only essential information to the outside
world and hiding their background details.
Advantages Of Data Abstraction
Simplification of software development.
Testing and debugging.
Reusability.
Security.
Modifications to the representation of a data
type.
Data Encapsulation
Data Encapsulation
Data Encapsulation is an Object Oriented Programming
concept that binds together the data and functions that
manipulate the data and that keep both safe from
outside interference and misuse.
Polymorphism
Polymorphism
The word polymorphism is a combination
of two words poly and morphism. Poly means
many and morphism means form.
In object-oriented programming,
polymorphism is the ability of objects of different
types to respond to functions of the same name.
The user does not have to know the exact type of
the object in advance. The behavior of the object
can be implemented at run time.
Types Of Polymorphism
Virtual functions.
Operator overloading.
Function overloading
Thank you