资源描述:
《计算机科学与技术外文翻译--详细解析java中抽象类和接口的区别》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ParsingJavaAbstractionoftheDifferenceBetweenClassesandInterfacesInJavalanguage,abstractscale-upandwithsupportclassabstractiondefinitionoftwomechanisms.Becauseofthesetwokindsofmechanismofexistence,justgivesJavapowerfulobject-orientedskills.Abstractscale-u
2、pandwithbetweenclassesabstractiondefinitionforsupporthasgreatsimilarities,eveninterchangeable,somanydevelopersintolinenon-abstractclassdefinitionforabstractscale-upanditisbecomingmorecasualwithchoice.Infact,bothbetweenstillhastheverybigdifference,forthei
3、rchoiceevenreflectedinproblemdomainessenceofunderstanding,todesigntheintentionsoftheunderstandingcorrectlyandreasonable.Thispaperwillforthedifferenceanalysis,tryingtogiveadeveloperwithachoicebetweenthemarebased.UnderstandclassabstractionAbstractclassandi
4、nterfaceinJavalanguageisusedforabstractclasses(inthisarticlenon-abstractclassnotfromabstractscale-uptranslation,itrepresentsanabstractbody,andabstractscale-upforJavalanguageusedtodefineclassabstractioninoneway,pleasereadersdistinguish)defined,thenwhatare
5、theabstractclasses,useabstractclassesforusanygood?Inobject-orientedconcept,weknowallobjectsisthroughclasstodescribe,butinturnnotsuch.Notallclassesareusedtodescribeobject,ifaclassdoesnotcontainenoughinformationtoportrayaconcreteobject,thisclassisabstractc
6、lasses.Abstractclassesareoftenusedtocharacterizationofproblemfieldinouranalysis,designthattheabstractconcepts,istotheserieswilllookdifferent,butessentiallythesameexactconceptionofabstraction.Forexample:ifwecarryoutagraphicaleditingsoftwaredevelopment,wil
7、lfindproblemdomainexistsround,trianglesosomespecificconcept,theyaredifferent,buttheyallbelongtoshapesuchaconcept,shapethisconceptinproblemdomainisnotexist,itisanabstractconcept.Preciselybecausetheabstractconceptsinproblemfieldnocorrespondingspecificconce
8、pt,sotocharacterizationabstractconceptsnon-abstractclasscannotbeinstantiated.Inanobject-orientedfield,mainlyusedforclassabstractiontypeshidden.Wecanconstructafixedagroupofbehaviorofabstractdescription,butthisgroupofbehavio