Welcome you
IRaghav Gupta
a student of
Basic Concepts
of
Object Oriented Programming
(OOP)
Problems with Procedural Oriented Programming………
• Length of code :-
• we need to make many functions to manage the code which creates a
problem for providing data to these functions.
• Passing parameters in all functions wastes memory
• Then, we make the DATA GLOBAL, which has a serious consequence of data
leaking ( I mean to say that accidently the data can be handed over to another
function and it can cause run time error or changing of data)
• This means “Focus on Functionality , not Data”
OOP fills the gap between client and developer……
Designing of
Online Sports
complex
booking
system
Online bill generation
Global access
Security
Node JS or .NET??
UI
No. of courts
Rates
Games available
No. of coaches
Timings
Canteen
No of pools
Etc.
OOP focuses on DATA, not functionality……
Give me air….give me
air!!!
POP
class
OOP
encaps
ulation
Dynamic
binding
polymo
rphism
inherit
ance
objects
abstrac
tion
Objects and Classes
int x
Object is an instance of the class
Objects and Classes
class
objects
Class student {
name
class
roll number
marks
currperfo()
extracurrperfo()
}
}
data
elements
behaviour
/attributes
/
Class methods
Like a
template
Encapsulation air
moisture
To prevent the
contents from
attack of external
factors
{The wrapping up of data and methods into a
single unit (called class) is known as
Encapsulation}
Polymorphism
Attack!!! 
Start gun firing
Start tank
Start with stones
Start with sword
Start with hand grenades
Access Specifiers (one aspect of data protection)
user
Can’t do just
anything, has only
specific functions
Abstraction
Dealing with
ideas not
with events
HOD
assistant
Just ordered to organise
the meeting, doesn’t know
how it was organised.
(all the
backend
process)
Inheritance
• Inheritance enables new classes to receive—or inherit—the
properties and methods of existing classes.
Thank You

basics of object oriented programming