Java
Java
buh
3)| wbat fs ehcapsulattom n Java and botw does ?E conto
to betes Softeoae desian9 Aditorall9, could yoo epain
packoges fatate encapsuletion io fova appcatong)
class nain
puble salfe void maln (sboing anqs()
Outer-oner in newo ote(). ne Inner():
in: showt );
ctass Oeteu
Vofd Ote Method ()
thod.
Oystem. out.pfntn ( ansrde octen me
ctass nnet
Votd nes ethod C)
Systen 0ut pofotn ("dnside innes Me thod")
y n e o anner),
class lave 11 De mo
Stetic Den d De Demo () {
vofd shouc)
Supenshoco ();
System. out-pâptn (" Fam in Favouwn 1 Demo class)
oveH Loadfg
Q. OccetS deenq he Occeeses desena tte execatir
CoTnpitatron q the proqram ef the pgam
3ReSolued based the 3. Reseled based on the
mettod Sfgnale actuo ty pe the obfect
at enttme
Custoaable
Custoaatio
CMRIT
CMR
OLPOF INSTIUTI
EXPLOETO NVENTTIONS
6)
piffeenes betoee
betoeen GupeH and Tbfs key wod
Supe ()
|: Scuper () 7epresents the |-thfs()epesens the
CuTent nstence of a Ceigsent Rnstence f a
pauent| base class class
2: Oced to CaU the default 2 Used to col tte default
onstuctos ef the pueot)onstouctos the Same
base clacs closs
3Used to a ccess nethools 3 USed to access ne thhods
e the base class
e tte Cusent ctass
Uged fo pofnbg the fo pointing the
Supecass fnstence CurIent class însace
5 must be the frst |5 must be the 4fGt
block. ine o a block
10 CMRIT
CMR
PoF INSTITUTIONS
NPLORE TO INVENT
11) CMRIT
CMR
GROLP OTNSTITUTIONs
TONENY
CMRIT