0% found this document useful (0 votes)
11 views5 pages

OOPJava

The document discusses key concepts of object-oriented programming, including classes, constructors, inheritance, polymorphism, encapsulation, and abstraction. It outlines various types of inheritance such as single-level, multi-level, hierarchical, and hybrid, along with access modifiers like public, private, and protected. Additionally, it touches on interfaces and the importance of data hiding in encapsulation.

Uploaded by

Rashi Potey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views5 pages

OOPJava

The document discusses key concepts of object-oriented programming, including classes, constructors, inheritance, polymorphism, encapsulation, and abstraction. It outlines various types of inheritance such as single-level, multi-level, hierarchical, and hybrid, along with access modifiers like public, private, and protected. Additionally, it touches on interfaces and the importance of data hiding in encapsulation.

Uploaded by

Rashi Potey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

clasSmute

Date
Page.

00f CHjictie Bhieatd hagraaing )


clas
biot Entitiy in e wed

Java ublie clas

# Consthutus C) paamteigd Coefalt)


paametiyd
Censtruter Cany nalue of
ta a ne)

Certruetor name = clas name


Const rwctors
car be called

|PILLARS fatneykikn.
Abstraction Irhuitane Encapsuatin.
cdutotically cald in Jome
Cmanuae Ct+)
estruors
Autenatie Gabage alletr4
Cremers wwusd ebyicts)
Cant i t manaly
Date
Page

Run tne
POLYMORPH)SM

Hamnile ne pelymehism OVERLOADING IN ONE S\NG5


CLASs
eledig
fanctán mtirle untons oung
tasks but
OR

DIFF ERENT PAfAME TERSA TO A


RETURN TIfE
FUNCTJON

(a) Ame e. but


difeunt
(6) iffeuntne. t antes
(c) difffeunt itun e

IS-A Relatian ship Cmethed)


INHERITANCE child clans acquira teats (po funiony
atribtes ent)

hild clans estens aent


|lmlementatien clas

SINGLE LVL
chilel

INHER |TANCE
’MULTI LVL

H)ERARCHIAL

HYBRJD
alssMate
code. pate
fackage cantains Aelated Page

pACKAGES Built in

ame

ACCESS MODIFIERS

PvBLIC PRIVATE PROTE CTED DE FA 0LT

Accens n Accers inAcces in Access in


Aae clas ’ONLy CLASS
(accersgecln-betles
a sane

b t AUbclas

(mudhad).
ENCAPSULATION Jata t funcions canbined in !
Cclas)y

* DATA HIDINGa acen modefe


menb t lans oam witeanded
|ABSTRACTION

clanon.
ahst ract reid fL ()
3.

ON INSTANT IATING
RUNTIMe ERROR A8STRACT LASS
abstract la C ane abstract / ceree netod

Can ne cantructors/ statit mtheda

INTERFACE’ PURE Etat abstraetçon

ne nlementatian
las inlement wlifac.
ainlemets ale funstiens
) methad ubic abstrac dfault.
hels nlenet MOLTIPLE
NHERITANCE, AtAd
tatic en nlilee
CE
ONONLY numory alocad ae
elements static
clans ’nested
block
/mthed funetan
ouibule stati
statie
Th Class. name Cla Wea accs
olasaticular cammer
to Mefetua
<TATICyaord
Page
Date,
alAsSMAte

You might also like