sinifaePe eda sat
~2. Method Over Loading 2 methods : Prengeanries - - —
a _CLASS_TE St
eats a QuesHiONns
vl Madi level Inhen tence
~-8- Method overaidung — —2 methods
—4.Ahslaactian. _ _
6. Pole pl Inhuwtanee
—S¥NTAS FOR! es - —
| def ee
~~ 2.i1f else — pt _— _—_
__ 2 nested if
AN Sees —
6 Malis level —Zrtwsilance
pete eypginme
public class Muah £
- publi —woid —nsversiig yO
i ane Sem OWL pati” Unset name. at _
Je
ice class — “Mutt 2€ extends Mult’ lt —
1 Pi upuic vad —ccilege ——_————
et cep
_ 4 ——
jo
LNpublic clas Matti 3 extenc> Multi2
g
petbliec void student
(Student name Abi 1
* yum out. prntlr
2 ° ape static Void mau (Sering C3 ong)
% .
Multi m3= new Matti 05
ma. Student O;
m3, college (;
m3 uncversity Cd)
. 4
J
QurPur :
Student name» Abi
college name * XYZ
Unuversity name : Abe
2» Metiop OveRLoapnei - 2 metheds
public clays cecream &
public void fee Bint count)
§
System out prunt ("no of people ."+ count)
3
pubic void ice € Staung flavour)
4
3
System out. pruntly C" Flavous +flaveus)j| ®
public Hae eC agg
5 a
Ike cream. f= new Teecream C): ereceerere sri
| a} nei 4eyn veh hs ph
}— fate O%Vaniia yc oe
| Lad _
Jj i
— OUTPUT _
——Ne_of people : 4
1 +—Flavous.+ Bi VIN a
— 3. Method “eierdng = 8 rtd
clans tices =
public void tee Cupt count)
- Spent pat neof _people."t count). —
=a wid tee C Stning flqvour) a
/ aa Syien_out..paurelal”E lavows ge count);
[a
_ | Public Chars TD extends Teeeream — _
T _publue vad _leeC_ ut itemne)e
To aut._puentlo C” Tternre +" "+ Lema): ——
|G Super jee C4:Pebtec vout cee C Stow nands
fh
Sysiem out punt C'Store name "4 name),
x Sper fintoaa ("vane la);
puplec static void man (Stomgh J ancy J3
2 Tr
T t= nee FO);
nice Gd;
rs 1ce ("1BAco") ;
J
J
CuTPuT:
Item no: 33
no of people: 4
Stove name: IBACO
Flavous € Varia
4» PARTIAL — PBSIRACTION |
Abstea ct
Public, Clans — Parent
A
pabluc abstract vold mild;
public void m20Z
A
5 System Out . pruntlol'zy x ") :
JPah class
fa
Public vor mi 02
Ehud extends Parent a
a
ws
—___ &
apie ~ouk. _pauatls Case): -
Childe = new Child 05
pubic static void mash » (Stang 1 ang)
po mat
- c.m20>;
fe
fees oY -5: Muiteple — Inherttance
Publee ahi [as pasentl
6
: abstoncl re
public, vere pitlails O;
Jy
Public wlerface posenta
Pubuc vord Llowk detacb 7
j
Public Class child extencls Parent} implements parent
public void pessonaldetacts¢ )
Syatem out psurtly ("Abi ");
J
pulee void Woskoletacul)*
4
3
pubut Static vord mash Stovig LJ args)
h
Syatern out punlly C" Accent ure");
Child C= new child 0;
C: personal detaclsc>
C. work detacuc)—— _ —
our Per. — _ _ —
Abi : - __
Accenture. _ - _ ———
SYNTAX — _ _
Vue! _ — —
it Ccendetuoe — oe
8 _ ee a
— C Stectements > ———— ——
3 Co
9. JF ELSE — - _ -
if Cennattian) — oe
3. MeseD IF) ee ee
a Copncition —f else
A __— R _
tf ~Cegamonts> —
_ _ Qo _
| etse tf (Condinse) , —
| A 7
a _ Statement? |
jo
3 |
We Tf
oy