0% found this document useful (0 votes)
4 views7 pages

OOPS

Uploaded by

Aritra Konar
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)
4 views7 pages

OOPS

Uploaded by

Aritra Konar
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/ 7

PIoNEI

bjcet onicntvcd Pragramming 23|08 2024


he eal tihc cbjeets axe deacibed by the attibules
the actívites the ehject tan do,
(only tat acli vitées that 0c elevont to the pliratien)

Ihe vaxiahle emthe class opeaendi


a portirulon ohjet.
o ne chvacteistie o class

Java
membh
gunetion mithads
2/08/2024
Cornralles loss
eLass sudent bublie class ABe
int idj
public vsid shew_id () feub.ie totie vaid main (dtbing
e&nlhueto. Student $1 -ew Studet ();
60.p(id); $!.gt-id (5); SL. shes id();
Systm . aut. pintln ("Helo);
publie vaid. get. id (9int ) Math class cenitoin the

þow(2,3) ’2
le, the au 2 coss Moth. pos(D;
daginitions .
Jhe mthadshauld be.
the mambnchip operato. deelored as stotic.
eL ASS METHOD elasmthe
: Jhe data the objeet
outside warld.

OGrily foublio methadi Can be callod as "objeet . mthod().


þublio
accosb
mothods pivate
cass oreate the obect
O daine the elss ’oeating conrallen
the coss ’ call the obect by mame
oLassname. jao
ooject oierted Pragrammung

classname. eloss aitl


javae cass_ame. jowa
ke oreatod aytor eonpitation
java slassname

... to00,v000, t00,000, t0,00, t,0 (AiM


Jhe control ttots rom mmainy statio
moin () must
be declored

ABC. main ( ) oL be called.


0bject ohúendod Thupramming 02/09/2024

as Studont +- concolenoim operotor


int id:
+publie
privale
’potooted
puublic vaid pinlId ( ) e n
sydlem. eut. puntn(" Ia is: "ie);
i

same mame as
has sasne
stich has attibute valucs
speoial mothad
tnAtuctor is a
to inializo the.
closs at its w6k clas
elass.
th
wation ot tho
at the ime et the
Jova.
alass orovidod by
abing
stung si Hallo" constructor
sbung(); daouit
.." sidant,
10|C
00PS

Mothed. Cweniaoding
elass A Mono. hon
molhod
dho
ant a oon oiat bt thon
publie vaid mi U signoloro. mist bo diynt,
Uho tunn ypo doosnt
bublie veid. m 2 (int a) m att e this

Multi- lovel inhuçtonco Singu snhorilones


finplsmartolitr,
Method of ehatig
A
claues hon the
classes.

closs M800 eztands cat

Multi_le inhoitonee
an't
be implemntzd doudty
in JAVA.
clase& are nheited om
mare than
existing etaases.
Coh base eloss
M800 -’ dived o
Methad Overwnding
Jhe doived elass centoins
the mothad aith eme
aipnatre but ditount dsfinálion, Auper" apesigis paert
han the base lass,
chas objert
"this
clas object.
10/o1[2024
Joors LAB
hpolrulot
t 0 nathada
nente myuily nela having
kactoual, checkpime .
his
No woe ulitity

haignment 2 hti-(avel
mple ment/ show the
caliclie. class.,s

2
00rs

-it Ahould be wnutlon án tho


he

Gupen objeet upth.m())


LbGuph mnthad aan (2) |

this'
ktyutnd claws A

this objet A(int )


’ this methad this. a =ai
Consthuctar
conabuetan ath degaust ongument
1s-A alotiormship
bottem
doivod class
Beatwres
taatues goatunes
doived lass 13-A base
eloss
©
O HAS-A elatienship

studat HAS -A oculiy


objeet
Chject
Orientod
en hoghamung ss0|2034
Taokage
Ctases tich de imilan typt job
erample : jva.. JangA

impent java. util.*

ho
ezcaplion

You might also like