Professional Documents
Culture Documents
Java Assignment 02 - Rishit Rastogi
Java Assignment 02 - Rishit Rastogi
CSE-IV
Q0346302422
JAVA
AIGNNEN- 02
2) nhsitanU3
doss’Ada% can oxtid ony oneabstract class,as ova doesntsuyr
Absrac conruos,mamtbet
mutipls inhuitane.Atstrock dlases can hare
olth abstnact mathod.
VOsiablus,ard non-akstract mithods alon
imblnt muhple inogoctsolnketats cannot hawe
>Can conhowe contants
ConstTUctorS or mumbot VosÑaHis,but th
ard mthodb.
this.num= nom
Syien.ot-pritn ("Valut:"+hishun);33
33
t is 5lrng Bojondaes. fxplain smithods and consrockor.
th.
t oirbuffor' dass in Java ioa mukabl, seqyuNKs, of chaactox lko similon to aalid
Siring dassJhut onoike ctrp,okccks of Sigbtfor canbe modtfed ajt hy
CONSTRTORS &
) Sringbufor()':Construskors an emphy strirg bufor sith an nkolcabacih of l6 charodsah.
METHODS3