英文翻译--Viusal C++简介.doc
TheViusalC+briefintroductionTheobject-orientedbasicconceptthinkingmodedecidedsolvesthequestionway,thetraditionalsoftwaredevelopmentusesfromthetopthoughtinstructionprogramming,soonthegoaldividesintocertainsubtargets,thesubtargetfurtherdividesagain,canprogramuntilthegoaltherealization.Theobject-orientedtechnologybringstheenormouschangeforthesoftwaredesigndomain,itcarriesontheproceduredevelopmentusingthesoftwareobject,theso-calledobjectiscontainsthedataandtothedatamanipulationcodeentity,orsaidisjoinssomeinthetraditionalconstructionofdatatobecalledthememberfunctiontheprocess,thusentrustswiththeobjectbythemovement.Butintheprogramming,theobjecthaswiththerealworldsomekindofcorrespondingrelations,wearepreciselyusethiskindofrelationstocarryonthedecompositiontothequestion.Lookedfromtheprogramlanguageanglethat,inanobjectthecodeand(or)thedatamaybethisobjectprivate,cannotbytheobjectoutsidepartdirectvisit.Thustheobjectprovidedonekindofhigh-levelprotectiontopreventtheprocedurehasnothingtodowiththepartwrongrevisionorhasusedwronglytheobjectprivatepart.Whenattemptsfromtheobjecttoreceivedirectlywhichprotectsinternaldatacarriesontherevision,byprocedurerejection,onlythentheforeignservicefunctionmaterialwhichprovidesthroughtheobjectcantoitsinternaldatacarryontheessentialprocessing,thushasguaranteedthedataprocessingvalidity.Saysfromthissignificance,iscalledthiskindofcodeandthedatarelation“theseal”.Inotherwords,thesealisprotectstheobjectseal,isabilitywhichhidestheinternaldetail.Entrustswithheavyresponsibilitytheaspectintheemphasissoftwaremodule,object-orientedtechnicalandthestandardindustrialdesignrulehasmoresimilarities.Intheobject-orientedlanguage,thekindisfoundstheobjectthekey,infactthekinddescribedaraceobjectpubliccharacteristicandtheoperation,buttheobjectistheconcreterealizationkind.Forexamplethecompactcarisabasicconcept,ithasthecolor,thegeometrysize,thedynamicperformancecharacteristic.Thenwemaydefineiscalled“car”thekind,hasparametersandsooncolor,geometrysize,dynamiccharacteristic,aswellasdescriptionautomobileunderambientconditionstateofmotionmemberfunction.Aconcretecompactcarisanobject,therelatedparameterhastheconcretevalueinthisobject,andmay(ambientconditionparameter)gainthisvehicleconcretestateofmotionthroughtheinputexplanationvariable.Theobject-orientedtechnologybringsthefollowingprofitforthesoftwaredevelopment:Reusability.Fromtheverybeginningtheobjectproductionisforthereuse,completesobjectinnextproceduredevelopmentbypartorcompletelyreuse.Reliability.Becausetheobject-orientedapplicationprocedurehascontainedthroughtheteststandardpart,thereforemorereliable.Becausethemassivecodesoriginatefromthematurereliablekindofstorehouse,thusdevelopstheproceduretheadditionalcodetoreduceobviouslynewly,thisisanimportantreasonwhichtheprocedurereliabilityenhances.Continuity.Hasobject-orientedcharacteristicC+andtheClanguagehastheverybigcompatibility,theCprogrammermaytransitquiteeasilytotheC+languagedevelopmentwork.Theobject-orientedlanguagehasthefollowingbasiccharacteristic:Accesscontrol.Theobjectmustbeabletocarryontheprotectiontoitsinternalcertainelements,istheyonlycanbytheinternaluse,butnotexteriordisturbance.Inturn,theobjectmustcarryontherelationwithotherexteriorelements,inordertocarriesontheoperationtotheobject.InC+,thekindhasprivate(private),protection(protected)andthepublic(public)threekindofvisitmechanisms.Succession.Throughtohadtheobjecttocarryonthemethodwhichtheincreaseorthepartrevisetoestablishthenewobject,tohadtheobjecttobepossibletoincreasethedataandtheprocess,alsomaycarryontocertainprocessesanewdefines.Theinitialkindiscalledthebaseclass,expandsthekindfromthebaseclasstobecalledderivedclass.Fromhadthekindofderivationnewthingsesclassisinordertoobtainstronglypointed.Polymorphism.Thedirectpositiveecosystemissame,theinheritanceconstitutedakindofrace.Intheusualthesekindofraceskindhasthememberfunctionofthesamename,forexampletheODdistributionclassrace,hasangeneralbaseclass,twoderivedclass:ThegrowthfactorODdistributionclassandthegravitationalmodelODdistributionclass,thesekindsallhavetheExecmemberfunctionofthesamename.Thepolymorphismmeantexistencemanykindsofforms,canmakethepeopletoactivateintheprocedureanybelongtoODthedistributionclassraceskindofExecmemberfunction,eveninthetranslationmaynotneedtoknowspecificallytheobjectisbelongstogrowthfactorODthekindofgravitationalmodelODdistributionclass.Theobject-orientedarchitecturetechnologyishelpfultothefoundationprofessionalsoftwaredevelopmentorganization.Forexampletransportationplanalthoughhasthedifference,butvariouscitiesneedthesoftwarebasicallyissame,thisprovidedonekindofmanufactureforthesoftwaredevelopmentorganization(topayattentiontoherelecturefacethetransportationplansoftwareframeisbutsoftwareframewasnotversatilesoftwares)anopportunity.Oncethiskindofframedevelopssuccessfully,mayrepeatedlyusemanytimes.Theobject-orientedtechnologysuitsspeciallyinreorganizessome