OOP Assignment No 2
OOP Assignment No 2
Date.
CharOame 3 0
o per (ATCOP
Page No.
Date.
Public e
NOid ge Details yoid)_
Noid put Detals Void)
Stdloopqt Delails ()
Cout ce end
fo2 (loop=O; loo p <ns looptt
Court <c"Dedauls of studentzcloop1)<c"\nD
Std loop] eput Delails C
etumO
Oukput
Ertea tctal Do of Stucdens 2
Brttr delails ot Studeot: L
Entar Da me mkey
Entr ollno-
Lnto total mores out of 500 50
bnder details of Stuclent 2 -
EhHex name u l l
Eoter oll no 2
Ene Aetal morles out of 500-YSO
Dohails ct studeot L
StudentDetauls
Namei-Mikey Rall NO2 tetal -ysopexcenHagega
Delails of student
Studet Delails
Oacentege o c
llNonneJully Roll NO:2 toteuR
(fTeop
Page No..
Date.
class Cs
classb ABC
public
int as
unt b
public
Noid get values O
O-269
5Whor is o of objech
Ans DAmayATuble ot p eClass 15 knowD
nown a
OayOf obje
Tee may of object is on ueer detine lerh
T6 recdence then one abject of a pticu
he oncept ol coaay 15 (ombiped tolth thedefiotog
he class. (ETCOS
Page No.
Date
privae
public
Demo
Demoth
Cout C end <e Destaudor Called"Ccendj
Noid put values(
Coutceendlccvalues af x:"Lc
Coutccendl<c"Nalues of y: "cyc endi
int main
Ouhput
(onshucdoz Called
Divalues 0
Nolues of xilo
Nalues of y 20
ConShudo calleol
D values abe
Nalues o t 2230
Aolues ot yie
(ATCOP)
Page No..
Date..
Destauchox Called
Des bucdo called
1o hat is detucdo wth eample?
to
A_ destuctor a s h e mame implies Used a
Ans ts
oesucox the obje hat bove beLD OEale d by
Comstuctad
fo example he destudtor for the class intege
Can beoleleined as belau -
integ.ca OA
A destauctor meveyJakes my Coqument not does
tchrn Nalue
ea
mtiX motbixO