Tntroduchon to tua - Taple #3
“CH wrthout the tough sh |"
NO Operatar— Herleading
NO User Defined Type Conversions
NO explicit poirkrs
NO “delete”
° ! Gar bage Collec ton /
No destructrs
No “un signed “
No "Pass by Reference “C¢ aléhough we past Veferente s
by value )OQuerview of Smmilarrhess
Ct é lava
') built-in Sata “ypes
Clnr, (ong , float, aouble, cAar
cxapr Go] ans/qned )
2) day objects are aefrned: :
int “ys —— Same
3) Loops: do while, whrk, for
kK Same
4) Operafrs : All arithinopc, (elabonel,
lo )qitca / subscript , meremen x cle cremenf
except Wd) sizeof, erplict poinkr ops,
Scope fesoluhon op.
5) Commené $ Lo and “A “/
b) Compourio/ Bock S f ?Overview *f bi fferenes
) LVER F/ANIG /s in a cl@ss
2) Global's
3) Separate implenentahor Versus
protkpe/ declarations :
4) Method'S are implemented LiWsoe|
the class
5) [io] frends
Memkrs are considered “friendly 7
of They are rot preuded worth
private - prokeckd, puble xtyword. 5
TSN
TAcse are JNoT / Cakgortes
c) Operator Nerloading - Think Yo!
2) Dis for] FALSE -
— No mire —Date Zypes
friminve. Reference
int, long, shor, ek. | class types
abra ha
llocATeh ON
a ae BL AIlOcATED om
The HEM
CANNOT be allucated Musr be allocated
dynamically with pew\ dananncally with few
(CANT be albtated on
Furchons : tle Stack)
Can
Lenty] pass caw [only] pass and
and return bY Vale ‘alg
rehin Re fertne s
by ValueArrays
CH fava
fat array LST; Cant ao AA’s
$ize
“
lat * array j int ara LL
alray = ew Ut LL; array = aew tnt LET,
epomn |e
wink it ] need the,
par fares f
>| vist]
Refer.ne heapArray of class lupes
cH Save
[st array LSI, Cant do this /
wer
list #* array ; ist array LL
alvvay = NCtw Mist * £5; uray = new list LSL;
for Gat 62GB; es 544i)
an arrag oe
le 7
aarragli]= new Ut; ior] objects
elope] rbot OE ti)
ary > [TF] array Ci] = new list();
> Co } —
| new we
Cy have list
objects /