2024: Domino Containers - The Next Step. News from the Domino Container commu...
Object-Oriented Programming (OOPS) in C++
1. GUIDEDED BY:- RESPECTED DEEPIKA MAM
SUBMITTED BY:- DEEPAK KUMAR SOLANKI
BRANCH:- Mechanical Engg.
CLASS:- 2nd year, 3rd sem.
2. It is object oriented
programming in which
programming is oriented by the
object.
Basic idea behind oops is that
computer program may be seen as
collection of individual units or
objects.
3. BASIC CONCEPTS OF
OOPS
1. Objects
2. Class
3. Data abstraction
4. Encapsulation
5. Inheritance
6. Polymorphism
4. CLASS
It is termed as a basic unit of
encapsulation.
A class is a grouping of objects that have the
same properties, common behaviour and
common relationships.
A class is a blue print or prototype from
which objects are created.
OR
5. OBJECT
A variable type of class is called an object,
which have a physical existance.
OR
Object is basically a class variable that
does the implementation of the plan
inside the class.
EX: VEHICLE is a CLASS.
CAR, BIKE, BYCYCLE, BUS,
TRUCK are the OBJECTS which
are inside the class.
6. DATA ABSTRUCTION
It is a mechanism to represent
only essential features which are
of only use of significance and
hides all the unimportant details.
7. ENCAPSULATION
It is the process that allow selective
hiding of properties and methods in a
class. OR
Mechanism that binds both function
and data in one compact form called
encapsulation.
8. INHERITANCE
DERIVED/NEW CLASS can inherit some of
properties of the BASE/SUPER/PARENT CLASS.
It is of five types:-
1. SINGLE INHERITANCE
2. MULTIPLE INHERITANCE
3. MULTILEVEL INHERITANCE
4. HIERARCHICAL INHERITANCE
5. HYBRID INHERITANCE
9. P OLYMORPHISM
It is a greek word which is made by two words:-
POLY(MANY) AND MORPHISM(FORMS).
Polymorphism means same things in different
form.
It is the main pillar of oop.
It is of two types:-
1. OPERATOR OVERLOADING
2. FUNCTION OVERLOADING