0% found this document useful (0 votes)
2 views

AWP Class Assignment

Uploaded by

jaishwaljaishi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

AWP Class Assignment

Uploaded by

jaishwaljaishi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

DTE

Clan Asaigimant
the
Ate a Ct nog tam to dlemonstrah
conept method Oraloacing
Ans Wc# Supporls methed overlodding-ohich alous
heate more than one method oith the Sem
you to

2heD yos cooth methodth cLR autnmatal,


chooe th torreet version ky examinry he poracke
yousupply
e)This echnigue allons you to (ollut illennt
Vereion sereal mathode fogeth

Lots oemanattateit with ths halp e examalu


Coala.
Using Syskm,
atats "shape
public int Area iot iot b)
int rectang le = l b j
rehiro rectanqle
public iot Area lint 2)
int Square = J t j
teturn S9uare,
Teacher's Signature :..
publia stabe Yoid Main (Stingllo orgs)
ghape obj ne)Share ,
int Areal sheatga ob.Area l 2,4)
Consale aikLine (" Ara e tecang" Areo

(onsole. AlcdeLine (" Arca al Squaei"+ Area 2);


20349

Io Above Eoce

io (las wit
)-tHe re we hae too mathodA
ther sarmu ham Aica ):but oith dille
paromekn

(2) Onemethod hosgTwo pata metei incd Gnoths


method have Dne poà netee

the Do o the ongumeut pas ked durin


19 Base o method 's Callad
the metbod call the coesp oneling

'2,4)}caltg the mithod oit


Dbj, Ara (

the method oit on


obi. Area (3)- Calls
paromel
Teacher's S1ignature:.
bHCTE

clonbnstrct the
ik aa t
arike program to
qoto sBaBeinen
keypard In (His a lootrol han
The" goto" ållbosiou totransfer cortro
Salement that
labeled Hatinest oithin the somA
soiteh statinink"oa
methodblo
used to tranler 'conrol rom daply
H can be oEubitehatelabn ai
DLgdecl bop

essDe monstratr mith he help o Examp

Dsing Systm i
DamLSPate CSharpboto
37:-i)
aclassi rogromln
puble isdBc( voidoMàin (String aria1
tepeat:
onsole aleite LihestEnkerta ingi-less thos 2D)
int num = (onverfn Tat32/lonsplé. Reedline
i! (num >lo)

goto .repealo
(ons ole Orituine(nyma is stes thdo fo"
(onole. Raad Lin oot

Kkre Lepeat isanalenhker. lhn goto repcati


Js en coynkrd,the lontrol ethe proqra ronnkves
tenect, Then The cooa belo nepeou tleahetore
osthe abore prograrn, uk haie a qoto Siatnut
insicle the i! SBakmnt
TP the enkred pumber ts nàt less thasI0, ao
Te Peat Htanse theontrol o hi o toenat'
Then the (bcle belo repeat ! is eDceuteel.

The ontro coce will he transkereel t the.


epeat labe unles th eokred o. is las
Hhan lo
Opera tion n ringsin

Ans C3 lonvetinto UpAaaLseL

sing SysACon
cassaprograslit
Siahe Yold Main )

Stang tmeystring" Hello Doll! ",:


int engta mystni'nlangth
ongolerite line " The beng ts sy a string is lngt

Output
The length String is 13
betoye the

are the key slegs sf the ASP. Ne


The follueing are
age Rezest
lUnload Start

RenderiPosthack
ng Tnihaizahon

TdoadT
Grert handt
Teacher's Slgnature :.

You might also like