大连科技学院2017届本科生毕业设计(论文)外文翻译
Everythi
gIsa
Object
“Ifwespokeadiffere
tla
guagewewouldperceiveasomewhatdiffere
tworld”LudwigWittge
stei
18891951
Althoughitisbasedo
CJavaismoreofa“pure”objectorie
tedla
guageBothCa
dJavaarehybridla
guagesbuti
Javathedesig
ersfeltthatthehybridizatio
was
otasimporta
tasitwasi
CAhybridla
guageallowsmultipleprogrammi
gstylesthereaso
CishybridistosupportbackwardcompatibilitywiththeCla
guageBecauseCisasupersetoftheCla
guageiti
cludesma
yofthatla
guage’su
desirablefeatureswhichca
makesomeaspectsofCoverlycomplicatedTheJavala
guageassumesthatyouwa
ttodoo
lyobjectorie
tedprogrammi
gThismea
sthatbeforeyouca
begi
youmustshiftyourmi
dseti
toa
objectorie
tedworldu
lessit’salreadythereThebe
efitofthisi
itialeffortistheabilitytoprogrami
ala
guagethatissimplertolear
a
dtousetha
ma
yotherOOPla
guagesI
thischapteryou’llseethebasiccompo
e
tsofaJavaprograma
dlear
thatalmosteverythi
gi
Javaisa
objectYouma
ipulateobjectswithrefere
cesEachprogrammi
gla
guagehasitsow
mea
sofma
ipulati
geleme
tsi
memorySometimestheprogrammermustbeco
sta
tlyawareofwhattypeofma
ipulatio
isgoi
go
Areyouma
ipulati
gtheeleme
tdirectlyorareyoudeali
gwithsomeki
dofi
directreprese
tatio
apoi
teri
CorCthatmustbetreatedwithaspecialsy
taxAllthisissimplifiedi
JavaYoutreateverythi
gasa
objectusi
gasi
gleco
siste
tsy
taxAlthoughyoutreateverythi
gasa
objecttheide
tifieryouma
ipulateisactuallya“refere
ce”toa
object1Youmightimagi
eatelevisio
theobjecta
daremoteco
troltherefere
ceAslo
gasyou’reholdi
gthisrefere
ceyouhaveaco
ectio
tothetelevisio
butwhe
someo
esays“Cha
gethecha
el”or“Lowerthevolume”whatyou’rema
ipulati
gistherefere
cewhichi
tur
modifiestheobjectIfyouwa
ttomovearou
d1Thisca
beaflashpoi
tTherearethosewhosay“Clearlyit’sapoi
ter”butthispresumesa
u
derlyi
gimpleme
tatio
AlsoJavarefere
cesaremuchmoreaki
toCrefere
cestha
topoi
tersi
theirsy
taxI
the1steditio
ofthisbookIchosetoi
ve
ta
ewterm“ha
dle”becauseCrefere
cesa
dJavarefere
ceshavesomeimporta
tdiffere
cesIwascomi
goutofCa
ddid
otwa
ttoco
fusetheCprogrammerswhomIassumedwouldbethelargestaudie
ceforJavaI
the2
deditio
Idecidedthat“refere
ce”wasthemorecommo
lyusedterma
dthata
yo
echa
gi
gfromCwould
1
f大连科技学院2017届本科生毕业设计(论文)外文翻译
havealotmoretocopewiththa
thetermi
ologyofrefere
cessotheymightaswelljumpi
withbothfeetHowevertherearepeopler