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

Notes of C++

Uploaded by

shreyakumari2412
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Notes of C++

Uploaded by

shreyakumari2412
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Date

he chiot-ouemted. fveqamning
foragsamming deficia a
MGVdes gu. set Shexatien m the cloas. St
tecuses miainly data and. asocinted.funcienu

1.

ClosRs

3. Baia. dhsbuAcien And. tncobsulaten.


4 nhexitante
5 Rslymaxhiam
6. Qynanie Aindng
Date

okject aiented. yatem.. Ihey may ejseemt


beHAGm, a place bank ncsunt.
dota. o. any tem, that a
Anndis.
handle. Rtoqpuamming hnllen analysed
in teems sq ck,ect atd he naluste o4.
cemmunicatia etneem them. Pogam ecta
shouldbe chosen, AIch that, tey mato
cleaxlyththe_ Heal DOA chiot hen. a.
foxoqoimi ereCued., the shject inteyact. u
Aending meALAgeA ta Ne-andthe..
Fo examble -
Bbota in de busguAM, hen dhe.
custemex chuct may Aend
iAcestunt ckyLHt tendesting ox dhe Bank Balante.
ach chot. centauna data and code te maribulate.
the. dot.

he emie. set data and cede f an


CAmbe made
he Yhlh og
s the tuße claa nce a clo hoA een.
.dsinrd. numkex
talnging la Jhat alas.. tachi sout
Date

Ckyict
uit

Aata. tbstractien ond tmenpsulatien.


Dato. Absbaction seleA to he act oe sefeentina
EANenia ratueAithout. neludingthe bocko
nd detail
Cencekt. ahstoctien and ane dejined as a
Listabstbact attbuhute kuch. Ar a}e,ltiokt
and fung1enA to kexate em. these attuite
cGt
LkcmeLuheNE, dhe classes Se. the. Lencskt
abstactien and thEy
Pnto upe (ADT)
q dala and tunctiom. unts a
he aking up
LAinoleunit Lclas) is knßum as encabanation.
sking eate
Aata emapuulatisn. ii the mALt he
ncceEAille to
te
s clos. the data is ngt
eutaide unctienA hich
NGHlA and emly thoue con0cceA
im the closs t Yhs
OHE akhsd.
tunclienAHovide the ntergoce tetuten. the
unalalisn
dhyect'a dala and AuoqHamhu, the
data. Mem diteot hy the aan
icalleddotohiding
Inheitance.
InheitoncE 0 the
AosDcQLiNE the. ancthe chs
Page No.
Date
25j0|24

Date

SHATE
classiicatien.
Box uangle
claas ling
BIRD

FLYING, BIRD NON-FLYING BIRD

ROBIN SWALLOW PENGUIN kIWI

he nciple chind. this sL disisien


thot
bach
dexied. cas shane,_ Cemmgn chaxncteyie
uth the clo gm hich it deyied.. în
the tantskt
his meana that, Eu con add.'dditenal
Yeotune de An ematng class thout meduing
the
eniling
usdl hae dhe camhinsh teatuMEX beth dhe

olmssphim
4ek dem meons dhe
ality de toke mte han eme
Date 2 09 2024

sealien moy erhabit dutgeend


ijgunt. behanicuyi
Aeunt dhe
ansthnces. he hchaNiaM delend

genevate asm.
Ating
abung han. the olbealon Guld sfocduc.
pucduCe
thivd sbung 'hbyy joining (oncatenation. ).

linking
called te "the cede. te be erdecuteA' im
MEAGmAE to the call. ynamic Buiding ao
knsn a "Yate Bindng" neona that he cede
OASCInted th a
knausnuntl the tume the call at the
un dune ft AAAguoted. usth
Land inthexitonte.

QHIented. kegam cenaist


chjecthat cammunihte ah eack stheu.
in an chect
9MIênted. Januag

isCEaling clnea that dalint6becli and thin


Date 0410 2024

Luaing cjcla tuem ucla diinuton.


Eatnblishing cemmunintien ameng chjent,
Oheta Cemmuncale bth 'ent angthe
y sending nd HECELNANg njsmalien the ame
Opstfle po theasagea dete eme
ene- ansthsy.
14 AAP te and aNEHANe tus Tumben
un Ctt

umt main

isat nunhex
numbeu 1,Tumkex 2, sum, avexagei
.Cim. >numke 1;
cin >> numbex 2;
&um = uumben1t numbex 2:
AMeage = sum/2:
COut K<"m="<< &um
CGut <<"awg ="<<aNeage
qetch );

2AP m Ct* te calculate iiion and


numbenu.
# ncude <ctMEam ih2
unt main
Date14 10 2024

ticat nunkex 1, numkey 2.


cGut <e" tmtey tua numee';
CAt << "ln"
Cim numbey 2.;
Assion= numbe 1/numben 2:
mutiplcation = numbty 1*numLey 2: 2;
cout <<
multikucaion=" <<mullpucnlgn
etusn0;

O0P_im Ctt
# nclud: <itucam.h >
# imcude <.conio _h>
cinu keuen.
chax name[sol;
umt
akuklic:
Void ugel. áata (vein:Munk tusdhu

COut <etmiy name:

Cin >
Date 14 40-944

COt <"\n Name"<< name. ;

nt

get.data 0;
P.
dihlay O;

tuse uumbety ncloas amd shject.


# uncude <iBsteamh>
#umolude <Cemig-h>
clos tudemt.

juklie: poumlrfovan
vd add (unt ao, nt b;

um maim. ()
Date

-Student ob.;
cinsce);
b. add (1,6);
qetoh ().;
Date 21 102O24

WAP in ctt to deteuine whathey


eem odd king cnu and
#imclude <iostuom-h
# mude <cenioh >
clos evem

kublic:
public

ceut <<"xu eMem"

VA man )

sHetuno,

QAP m. ott
toble
umhe.
Date 21 10 2024

#unclude
<ostucam h>
#_umolude <conio: h
Clas table

Lmt a, i,
Void. table ()

numbe;
por (i=1; i<:10; it+)

CQt<<n<<"" << j<< r="K4<<end:

ta ble eb.;
Date 2510 2094

# anclude <ussbuam:h>
unt main ()

nt i-1:
de

CQut<<i<<\n"
i++;

thile(i<=10);

umt maim )

dnt i=1;
thile (i<=10)
COut<<i<<"ln':
Date

bustah laxe
#umolude <sGsieRam h>
unt main )

Umt num
CBut<e"emtex a numbex t8 check uade'
Austeh (num)

cOse 20:caut <<"it i 20":


COAe 30caut<<" t a 30": eak
deioutt :"Ngt 10, 20. 94 30":beak
Dxeak:
Date 11 1 2024

the tabe a

#umcude <iateOmh>
# moude <conis h>
clOsstable

umt i =1;
jaublic.:
Void. main. ()

CGut <<" tntex ans numbex";


CGut <ex*;
itt

uthile (i<i);
29:11
2O24Date

ih:h>
ncude # n=
tempCoute\n #umeude
<cenig:
maimumt
() h> #
<isstreamh
>e ##mcude
<cemia-h>
# umcuude # else Ceut 10:H=
n(n>0)
shie
n,,temp,Aum=0; Jenqunt Jmelude
BalindGMe cout<\n
qeloh O; nm
=n/10; n falimdxome
<<
nunbe tmteH <istHeam
< numben 10)+ 4
the unleape -
ii
falindneme
is numbex" h>
nat
Abung
palindeme
29L2024
Date
ele.
(°Pause"):
Aystem Cut<Atung
ut<< dengt
yoh
cat<e"ntex umt
stinq .
Jengtha;ai11201;
ni,tchan
lung Ci=0;i<
ing Atlen
=0
1<<" 1<A 1l}s
dength'
(atsun; n
is sbung chasactex
apalndeme
net
a.
ipalumdeme; 1lsungth itt) 1);
Alung";
ting"
"; -i-1l

You might also like