You are on page 1of 3

Adliy a Dandave

1313009
PageNo
Date
ce lical No :
AmtINrik_a pcoqrom tdernonghak tu canuept iakcatt

hery

Tnedacos Ta Jaa
las 1ha
rm inkeinJave isaluepiat
stakicConstoinl and absact methods Theinkdase
Taweis a mechanism to achiave acthoel in abshocten
Ihee Can oe ony abshnd metho in aa inkoe nat
me
mgthod
thocdloocly is tugee t achiewe s hraction andMulHple
inhenlene ava

alhy Java Laedace


tasensta uinlefae
There mainly three
i s iss ed achiere eos hrac Hen
By iokriae tue can Aupport the kuncHon ality
ofmeliple
inhentonte
. 1 t can be ued a achiere looso Cotuplnp

Synles

inlestate inkdnsename

/eleche_onstad eldy
eela mathed that obchs

Teacher's Signature
Tava Ialedae Fsompeoln lale

inlerfae Band
oct ale of Takrtt O,
cla) SeT implemesly Benk
pulic

oat Tak af Lnle ret )


pablte 3taic
ekeen91s
voi
elas d
PrS imdemd Bnk
Public load Tle maun
Ineeyf )

(S
cay Tet Taede 2 hing
CJ

arga)

Banlk b noLD SBI O)


3 kn oud mntn(RoI Ab rde0f 1ne*l
1interface Bank{
float rate0fInterest ();

class SBI implements Bank

public float rate0fIntere:


freturn 9.15f;}
class PNB implements Bank
10
11 public float rate0fIntere
12 freturn 9.7f:}
13
14 public class TestInterfac
15
16 public static void main(S
17
18 Bank b=new SBI():
19 System.out.println("ROI:
20
21

Execute Mode, Version, Inputs & Arguments

JDK 11.0.4 Interactive


CommandLine Arguments

Execute

Result
compiled and executed in 0.974 sec(s)

You might also like