资源描述:
《为什么面向对象的编程会在软件开发领域造成如此震憾的影响翻译.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、英文文摘Whyhasobject-orientedprogramminghadsuchasweepingimpactonthesoftwaredevelopmentcommunity?Object-orientedprogrammingappealsatmultiplelevels.Formanagers,itpromisesfasterandcheaperdevelopmentandmaintenance.Foranalystsanddesigners,themodelingprocessbecomessimpl
2、erandproducesaclear,manageabledesign.Forprogrammers,theeleganceandclarityoftheobjectmodelandthepowerofobject-orientedtoolsandlibrariesmakesprogrammingamuchmorepleasanttask,andprogrammersexperienceanincreaseinproductivity.Everybodywins,itwouldseem.Ifthere’sadow
3、nside,itistheexpenseofthelearningcurve.Thinkinginobjectsisadramaticdeparturefromthinkingprocedurally,andtheprocessofdesigningobjectsismuchmorechallengingthanproceduraldesign,especiallyifyou’retryingtocreatereusableobjects.Inthepast,anovicepractitionerofobject-
4、orientedprogrammingwasfacedwithachoicebetweentwodauntingtasks:1.ChoosealanguagesuchasSmalltalkinwhichyouhadtolearnalargelibrarybeforebecomingproductive.2.ChooseC++withvirtuallynolibrariesatall,andstrugglethroughthedepthsofthelanguageinordertowriteyourownlibrar
5、iesofobjects.Itis,infact,difficulttodesignobjectswell–forthatmatter,it’shardtodesignanythingwell.Buttheintentisthatarelativelyfewexpertsdesignthebestobjectsforotherstoconsume.SuccessfulOOPlanguagesincorporatenotjustlanguagesyntaxandacompiler,butanentiredevelop
6、mentenvironmentincludingasignificantlibraryofwell-designed,easytouseobjects.Thus,theprimaryjobofmostprogrammersistouseexistingobjectstosolvetheirapplicationproblems.Thegoalofthischapteristoshowyouwhatobject-orientedprogrammingisandhowsimpleitcanbe.Thischapterw
7、illintroducemanyoftheideasofJavaandobject-orientedprogrammingonaconceptuallevel,butkeepinmindthatyou’renotexpectedtobeabletowritefull-fledgedJavaprogramsafterreadingthischapter.Allthedetaileddescriptionsandexampleswillfollowthroughoutthecourseofthisbook.Thepro
8、gressofabstractionAllprogramminglanguagesprovideabstractions.Itcanbearguedthatthecomplexityoftheproblemsyoucansolveisdirectlyrelatedtothekindandqualityofabstraction.By“kind”Imean:w