5 General OOP Concepts
5 General OOP Concepts
5 General OOP Concepts
PRAVEEN M JIGAJINNI
PGT (Computer Science)
MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA,
Dc. Sc. & Engg.
Reference Book
CLASS XI
By
Sumita Arora
CHAPTER 5
GENERAL OOP
CONCEPTS
EVOLUTION OF
SOFTWARE
PROGRAMMING
LANGUAGES
PROGRAMMING PARADIGMS
PARADIGM means organizing principle
of a program . It is an approach to the
programming.
Ex : Procedural programming
Modular programming
Object oriented programming
PROCEDURAL PROGRAMMING
The focus is on processing
It says :
MODULAR PROGRAMMING
A SET OF RELATED PROCEDURE WITH DATA
THEY MANIPULATE IS CALLED A MODULE.
It says
DECIDE WHICH MODULES YOU WANT
PARTITION THE PROGRAM
SO THAT DATA IS HIDDEN IN MODULES
OBJECT
OBJECT ORIENTED
ORIENTED
PROGRAMMING
PROGRAMMING
It says:
PROPERTIES
BEHAVIOUR
OBJECT 2
PROPERTIES
BEHAVIOUR
PROCEDURAL PARADIGM
FUNCTION 1
DATA 1
FUNCTION 2
DATA 2
FUNCTION 3
1. DATA ABSTRACTION
2. DATA ENCAPSULATION
3.MODULARITY
4. INHERITANCE
5.POLYMORPHISM
DATA ABSTRACTION
ABSTRACTION refers to the act of
representing essential features without
including the background details or
explanations.
It focuses upon the observable behavior of
an object.
ENCAPSULATION
The wrapping up of data and operations /
functions (that operate on the data ) into a
single unit (called class) is known as
ENCAPSULATION.
Encapsulation is a way to implement data
abstraction. It hides the details of the
implementation of an object.
It focuses upon the implementation that gives
rise to observable behavior.
DATA
MEMBER
FUNCTIONS
DATA
DATA
MEMBER
FUNCTIONS
MEMBER
FUNCTIONS
THE OOP APPROACH
MODULARITY
It is the property of a system that has
been decomposed into a set of
cohesive and loosely coupled modules.
It reduces complexity of program
It Creates a number of well-defined,
documented boundaries within the
program.
UP NEXT
INHERITANCE
1.
2.
3.
POINTS
POLYMORPHISM
It is the ability for a message or data to be
processed in more than one form.
It is a property by which the same message
can be sent to objects of several different
classes, & each object can respond in a
different way depending on its class.
Languages that support classes
but not polymorphism are called
OBJECT BASED languages.
ADVANTAGES OF OOPs
1. It models real world well.
2. Programs are easy to understand.
3. It offers class reusability. Already
created classes can be reused
without having to write them again.
4. It facilitates quick development as
parallel development of classes is
possible.
5. Programs are easier to test, manage
& maintain.
DIS-ADVANTAGES OF OOPs
1.
2.
3.
4.
5.
THANK
YOU