版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
PAGEPAGE28《面向对象程序设计(双语)》课程教学大纲一、课程基本信息课程代码:16073504课程名称:面向对象程序设计(双语)英文名称:Object-OrientedProgramming课程类别:专业课学时:4学分:4适用对象:计算机科学与技术专业考核方式:考试先修课程:程序设计二、课程简介本课程是计算机科学与技术专业基础课,也是后续相关课程的核心基础。本课程以某一面向对象程序设计语言为载体(Java、C++、Python),在程序设计语言基本语言要素基础上,主要讲解面向对象程序设计思想,围绕封装、继承和多态三大核心内容,以实践为导向,培养学生的程序解决能力。本课程采用双语授课方式,结合学生特点,提供多样化的教学方式。Thiscourseisthebasiccourseinthecomputerscienceandtechnology,alsoisthecorebasicofthefollowingrelatedcourses.Itintroducesoneofobject-orientedprogramminglanguage,suchasJava,C++andPython.Basedontheprogramlanguagesyntax,itmainlyillustratesthecoreideaofobjected-orientedprogramming,whichincludesencapsulation,inheritanceandpolymorphism.Thiscourseisguidedbythepracticeandaimingatimprovingthestudents’programmingsolutionabilities.Combinedwiththefeaturesofstudents,weprovidediversifiedteachingmethodsbythebilingualteaching.三、课程性质与教学目的本门课程是计算机科学与技术专业必修课。通过本门课程的学习,使学生掌握面向对象编程思想,理解结构化程序设计与面向对象程序设计的区别,熟练掌握一种面向对象程序设计语言的语法,能够运用该门语言解决具体程序问题,具备一定的程序问题解决能力,为后续实践课程学习奠定基础。四、教学内容及要求第一章Introduction目的与要求Describetherelationshipbetweenhardwareandsoftware.Definevarioustypesofsoftwareandhowtheyareused.Identifythecorehardwarecomponentsofacomputerandexplaintheirroles.Explainhowthehardwarecomponentsinteracttoexecuteprogramsandmanagedata.IntroducetheJavaprogramminglanguage.Describethestepsinvolvedinprogramcompilationandexecution.Presentanoverviewofobject-orientedprinciples.教学内容第一节ComputerProcessing主要内容therelationshipbetweenhardwareandsoftwarevarioustypesofsoftwareandhowtheyareused基本概念和知识点ComputerSystem,Software,DigitalComputers,Binarynumber问题与应用(能力要求)根据日常实际理解计算机处理。融入点:中国计算机发展史--1956年,周\t"/item/%E4%B8%AD%E5%9B%BD%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%8F%B2/_blank"总理亲自主持制定的《十二年科学技术发展规划》中,就把计算机列为发展\t"/item/%E4%B8%AD%E5%9B%BD%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%8F%B2/_blank"科学技术的重点之一,并在1957年筹建中国第一个计算技术研究所。由中国计算机发展史引入相关概念,让同学们理解我国科技复兴之路发展历程。第二节HardwareComponents主要内容thecorehardwarecomponentsofacomputerhowthehardwarecomponentsinteracttoexecuteprogramsandmanagedata.基本概念和知识点ComputerArchitecture,Input/OutputDevices,MainMemoryandSecondaryMemory,TheCentralProcessingUnit问题与应用(能力要求)理解组件间的联系。融入点:对比我国社会矛盾的变化讲解计算机硬件组件的协作与发展。第三节TheJavaProgrammingLanguage主要内容Introducejavaprogramminglanguage基本概念和知识点JavaProgramstructure,comments,identifiersandreservedwords,问题与应用(能力要求)对比C语言程序,理解Java基本程序HelloWorld第四节ProgramDevelopment主要内容ProgrammingLanguageLevelsEditors,Complilers,andInterpretersDevelopmentEnvironmentsSyntaxandSemanticsErrors基本概念和知识点AllprogramsmustbetranslatedtoaparticularCPU’smachinelanguageinordertobeexecuted.High-levellanguagesallowaprogrammertoignoretheunderlyingdetailsofmachinelanguage.AJavacompilertranslatesJavasourcecodeintoJavabytecode,alowlevel,architecture-neutralrepresentationoftheprogram.ManydifferentdevelopmentenvironmentsexisttohelpyoucreateandmodifyJavaprograms.Syntaxrulesdictatetheformofaprogram.Semanticsdictatethemeaningoftheprogramstatements.Theprogrammerisresponsiblefortheaccuracyandreliabilityofaprogram.AJavaprogrammustbesyntacticallycorrectorthecompilerwillnotproducebytecode.问题与应用(能力要求)学会使用命令行模式和IDE方式编译执行程序。第五节Object-OrientedProgramming主要内容ProblemSolvingObject-OrientedSoftwarePrinciples基本概念和知识点Object-orientedprogramminghelpsussolveproblems,whichisthepurposeofwritingaprogram.Programdesigninvolvesbreakingasolutiondownintomanageablepieces.Eachobjecthasastate,definedbyitsattributes,andasetofbehaviors,definedbyitsmethods.Aclassisablueprintofanobject.Multipleobjectscanbecreatedfromoneclassdefinition.问题与应用(能力要求)无融入点:面向对象思想来源于哲学思想,在讲解过程中引入习近平新时代哲学观。思考与实践联系程序设计课程中C语言的特点,对比Java的特点。能够用Java语言编写入门的简单程序。教学方法与手段本章主要采用分组讨论和课堂讲授方法。第二章DataandExpressions目的与要求Discusstheuseofcharacterstrings,concatenation,andescapeSequences.Explorethedeclarationanduseofvariables.DescribetheJavaprimitivedatatypes.Discussthesyntaxandprocessingofexpressions.DefinethetypesofdataconversionsandthemechanismsforAccomplishingthem.IntroducetheScannerclasstocreateinteractiveprograms.教学内容第一节CharacterStrings主要内容TheprintandprintlnMethodsStringConcatenationEscapeSequences基本概念和知识点TheprintandprintlnmethodsrepresenttwoservicesprovidedbytheSystem.outobject.Anescapesequencecanbeusedtorepresentacharacterthatwouldotherwisecausecompilationproblems.问题与应用(能力要求)掌握字符串的使用方法,包括连接符与转义符第二节VariablesandAssignment主要内容VariablesTheAssignmentStatementConstants基本概念和知识点Avariableisanameforamemorylocationusedtoholdavalueofaparticulardatatype.Accessingdataleavesitintactinmemory,butanassignmentstatementoverwritestheolddata.Wecannotassignavalueofonetypetoavariableofanincompatibletype.Constantsholdaparticularvalueforthedurationoftheirexistence.问题与应用(能力要求)会正确定义变量和常量,使用赋值语句第三节PrimitiveDataTypes主要内容IntegersandFloatingPointsCharactersBooleans基本概念和知识点Javahastwokindsofnumericvalues:integerandfloatingpoint.Therearefourintegerdatatypesandtwofloatingpointdatatypes.Javausesthe16-bitUnicodecharactersettorepresentcharacterdata.问题与应用(能力要求)根据基本数据类型以及其占据的内容空间合理定义变量类型融入点:数据类型定义与内存空间分配关系紧密,由空间分配引入促进人与自然和谐共生的相关思想,引导学生思考如何在有限的空间和资源下,达到最大的效用。第四节Expressions主要内容ArithmeticOperatorsOperatorPrecedenceIncrementandDecrementOperatorsAssignmentOperators基本概念和知识点Expressionsarecombinationsofoperatorsandoperandsusedtoperformacalculation.Javafollowsawell-definedsetofprecedencerulesthatgovernstheorderinwhichoperatorswillbeevaluatedinanexpression.问题与应用(能力要求)掌握表达式的优先级第五节DataConversion主要内容ConversionTechniques基本概念和知识点NarrowingconversionsWideningconversions问题与应用(能力要求)掌握什么情况下用narrowing和wideningconversion第六节InteractivePrograms主要内容TheScannerClass基本概念和知识点TheScannerclassprovidesmethodsforreadinginputofvarioustypesfromvarioussources.问题与应用(能力要求)掌握Scanner类的使用方法思考与实践利用Scanner类与屏幕交互,计算表达式结果,并在屏幕输出。教学方法与手段课堂讲授为主。第三章UsingClassesandObjects目的与要求Discussthecreationofobjectsandtheuseofobjectreferencevariables.ExploretheservicesprovidedbytheStringclass.DescribehowtheJavastandardclasslibraryisorganizedintopackages.ExploretheservicesprovidedbytheRandomandMathclasses.Discusswrapperclassesandtheconceptofautoboxing.Introducecomponentsandcontainersusedingraphicaluserinterfaces.Describealabelcomponentandtheuseofimages.教学内容第一节CreatingObjects主要内容Howtocreateanobject?基本概念和知识点Thenewoperatorreturnsareferencetoanewlycreatedobject.Multiplereferencevariablescanrefertothesameobject.Usuallyamethodisexecutedonaparticularobject,whichaffectstheresults.问题与应用(能力要求)提供创建对象,理解对象在内存中的存储原理。第二节TheStringClass主要内容MethodsoftheStringclass基本概念和知识点Methods:charAt(intindex),compareTo(Stringstr),concat(Stringstr),equals(Stringstr),equalsIgnoreCase(Stringstr),length(),replace(charoldChar,charnewChar),substring(intoffset,intendIndex),toLowerCase(),toUpperCase()问题与应用(能力要求)(1)学会使用String类的方法。(2)了解String类在初始化上与其他类的区别。(3)掌握String类的内存存储模式第三节Package主要内容ClassLibrariesTheJavaAPIPackagesTheimportDeclaration基本概念和知识点Aclasslibraryprovidesusefulsupportwhendevelopingprograms.TheJavastandardclasslibraryisorganizedintopackages.Allclassesofthejava.langpackageareautomaticallyimportedforeveryprogram.问题与应用(能力要求)熟悉常见的java包。融入点:结合国家治理体系讲解Java中的包和类库的作用。第四节TheRandomandMathClass主要内容RandomClassMathClass基本概念和知识点Apseudorandomnumbergeneratorperformsacomplexcalculationtocreatetheillusionofrandomness.AllmethodsoftheMathclassarestatic,meaningtheyareinvokedthroughtheclassname.MethodsofRandomandMathclass.问题与应用(能力要求)学会使用Random和Math的方法。第五节WrapperClass主要内容Wrapperclassesthatcorrespondtoeachprimitivetype.Autoboxing基本概念和知识点Awrapperclassallowsaprimitivevaluetobemanagedasanobject.Autoboxingprovidesautomaticconversionsbetweenprimitivevaluesandcorrespondingwrapperobjects.问题与应用(能力要求)学会使用基本数据类型所对应的Wrapperclass。第六节ComponentsandContainers主要内容GraphicalApplicationsGUIComponentGUIContainersLabelsNestedPanels基本概念和知识点ContainersarespecialGUIcomponentsthatholdandorganizeothercomponents.Aframeisdisplayedasaseparatewindow,butapanelcanbedisplayedonlyaspartofanothercontainer.Everycontainerismanagedbyalayoutmanager.Panelscanbenestedtocreateanintricatecontainmenthierarchyofcomponents.Alabelcancontaintext,animage,orboth.问题与应用(能力要求)完成一个嵌套Panel,带Label的用户界面程序。思考与实践理解用户界面的构造思路。教学方法与手段课堂讲授为主第四章WritingClasses目的与要求Discussthestructureandcontentofaclassdefinition.Establishtheconceptofobjectstateusinginstancedata.Describetheeffectofvisibilitymodifiersonmethodsanddata.Explorethestructureofamethoddefinition,includingparametersandreturnvalues.Discussthestructureandpurposeofaconstructor.Explorethecreationofgraphicalobjects.Introducetheconceptsneededtocreateaninteractivegraphicaluserinterface.ExploresomebasicGUIcomponentsandevents.教学内容第一节ClassesandObjects主要内容TherelationshipbetweenanobjectandaclassAttributesandoperationsObjectinthememoryInstancedataUMLclassdiagrams基本概念和知识点Theheartofobject-orientedprogrammingisdefiningclassesthatrepresentobjectswithwell-definedstateandbehavior.Thescopeofavariable,whichdetermineswhereitcanbereferenced,dependsonwhereitisdeclared.AUMLclassdiagramhelpsusvisualizethecontentsofandrelationshipsamongtheclassesofaprogram.问题与应用(能力要求)掌握类和对象的概念。融入点:以党和党员的关系说明类和对象的关系,深化理解坚持和加强党的全面领导。第二节Encapsulation主要内容VisibilityModifiersAccessorsandMutators基本概念和知识点Public,private,protected,finalGetandsetmethodsAnobjectshouldbeencapsulated,guardingitsdatafrominappropriateaccess.Instancevariablesshouldbedeclaredwithprivatevisibilitytopromoteencapsulation.Mostobjectscontainaccessorandmutatormethodstoallowtheclienttomanagedatainacontrolledmanner.问题与应用(能力要求)理解不同访问权限的范围,学会使用实现封装。融入点:引入习近平主席把权力关进制度的笼子里,讲解访问权限关键词。第三节MethodandConstructors主要内容MethodDeclarationsMethodControlFlowParametersLocalDataConstructors基本概念和知识点Thevaluereturnedfromamethodmustbeconsistentwiththereturntypespecifiedinthemethodheader.Whenamethodiscalled,theactualparametersarecopiedintotheformalparameters.Avariabledeclaredinamethodislocaltothatmethodandcannotbeusedoutsideofit.Aconstructorcannothaveanyreturntype,evenvoid.问题与应用(能力要求)深刻理解实例化时,构造方法的执行过程和内存分配情况。第四节GUIcomponents主要内容GraphicalUserInterfacesEventsandListenersGUIDevelopmentButtonsandTextFields基本概念和知识点AGUIismadeupofcomponents,eventsthatrepresentuseractionsandlistenersthatrespondtothoseevents.ListenersareoftendefinedasinnerclassesbecauseoftheintimaterelationshipbetweenthelistenerandtheGUIcomponents.问题与应用(能力要求)掌握JavaGUI的事件处理机制,能够组合组件和事件监听机制完成一定功能。融入点:用抗战时期地雷战中的哨岗以及地下党的谍战小视频讲解事件监听机制。思考与实践实现一个带Button、TextField组件,并能够做出响应的图像用户界面程序。教学方法与手段主要以课堂讲授和案例展示为主。第五章ConditionalsandLoops目的与要求Definetheflowofcontrolthroughamethod.ExploreBooleanexpressionsthatcanbeusedtomakedecisions.Performbasicdecisionmakingusingifstatements.Discussissuespertainingtothecomparisonofcertaintypesofdata.Executestatementsrepetitivelyusingwhileloops.Examineconditionalprocessingusingswitchstatements.Discusstheconditionaloperator.Examinealternativerepetitionstatements:thedoandforloops.Discusstheconceptofaniteratorobjectanduseonetoreadatextfile.ExploremoreGUIcomponentsandevents.教学内容第一节TheifStatement主要内容EqualityandRelationalOperatorsLogicalOperatorsTheif-elseStatementUsingBlockStatementsNestedifStatements基本概念和知识点Conditionalsandloopsallowustocontroltheflowofexecutionthroughamethod.Anifstatementallowsaprogramtochoosewhethertoexecuteaparticularstatement.Aloopallowsaprogramtoexecuteastatementmultipletimes.Logicaloperatorsareoftenusedtoconstructsophisticatedconditions.Properindentationisimportantforhumanreadability;itshowstherelationshipbetweenonestatementandanother.Anif-elsestatementallowsaprogramtodoonethingifaconditionistrueandanotherthingiftheconditionisfalse.Inanestedifstatement,anelseclauseismatchedtotheclosestunmatchedif.问题与应用(能力要求)掌握if语句的使用方法。第二节ComparingData主要内容ComparingFloatsComparingCharactersComparingObjects基本概念和知识点TherelativeorderofcharactersinJavaisdefinedbytheUnicodecharacterset.ThecompareTomethodcanbeusedtodeterminetherelativeorderofstrings.问题与应用(能力要求)掌握不同数据类型的对比方法。第三节ThewhileStatementandIterators主要内容InfiniteLoopsNestedLoopsThebreakandcontinueStatementsReadingTextFiles基本概念和知识点Awhilestatementexecutesthesamestatementuntilitsconditionbecomesfalse.Wemustdesignourprogramscarefullytoavoidinfiniteloops.Aniteratorisanobjectthathelpsyouprocessagroupofrelateditems.ThedelimitersusedtoseparatetokensinaScannerobjectcanbeexplicitlysetasneeded.问题与应用(能力要求)掌握while循环,区别对待break和continue,掌握输入输出流的相关类的使用。融入点:通过两个一百年目标,阐述在两个一百年到来之前,我党的主要奋斗方向和工作内容,从而引申出While循环的意义:不达目的,不退出(break和continue可以对应提前完成目标和完成部分工作等不同情形)。第四节TheArrayListClass主要内容基本概念和知识点AnArrayListobjectstoresalistofobjectsandletsyouaccessthemusinganintegerindex.WhenanArrayListobjectiscreated,youspecifythetypeofelementthatwillbestoredinthelist.问题与应用(能力要求)学会使用ArrayList类的方法融入点:我国精准扶贫过程中实施建档立卡贫困户政策,通过对贫困户对动态管理,实现扶真贫、真扶贫,确保在规定时间内达到稳定脱贫目标,讲解利用ArrayList类实现这一过程(对数组相关信息进行增删改查)。第五节TheswitchStatementandtheconditionaloperator主要内容theswitchstatementtheconditionaloperator基本概念和知识点Aswitchstatementmatchesacharacterorintegervaluetooneofseveralpossiblecases.Abreakstatementisusuallyusedattheendofeachcasealternativeofaswitchstatement.Theconditionaloperatorevaluatestooneoftwopossiblevaluesbasedonabooleancondition.问题与应用(能力要求)掌握Swtich语句。融入点:通过阐述党的精准扶贫、精准脱贫核心思想,在针对不同贫困区域环境、不同贫困农户状况,运用科学有效程序对扶贫对象实施精确识别、精确帮扶、精确管理的治贫方式,来讲解Switch的分支选择特性。第六节ThedoStatementandtheforStatement主要内容ThedostatementThefor-eachloopComparingloop基本概念和知识点Adostatementexecutesitsloopbodyatleastonce.Aforstatementisusuallyusedwhenaloopwillbeexecutedasetnumberoftimes.Thefor-eachversionofaforloopsimplifiestheprocessingofallelementsinanIterableobject.Theloopstatementsarefunctionallyequivalent.Whichoneyouuseshoulddependonthesituation.问题与应用(能力要求)掌握do循环和for循环。第七节DeterminingEventSources主要内容EventSourcesCheckboxesandRadiobuttonsDialogboxes基本概念和知识点Differenteventsources;Theeventsourcesofcheckboxes,radiobuttonsanddialogboxes.问题与应用(能力要求)学会使用新组件。思考与实践掌握条件和循环语句,在界面程序中,深刻理解事件处理机制,能够运用逻辑实现组件的响应。教学方法与手段课堂讲授与实验第六章Object-OrientedDesign目的与要求Establishkeyissuesrelatedtothedesignofobject-orientedsoftware.Exploretechniquesforidentifyingtheclassesandobjectsneededinaprogram.Discusstherelationshipsamongclasses.Describetheeffectofthestaticmodifieronmethodsanddata.Discussthecreationofaformalobjectinterface.Discussissuesrelatedtothedesignofmethods,includingmethodoverloading.Exploreissuesrelatedtothedesignofgraphicaluserinterfaces,includinglayoutmanagers.教学内容第一节SoftwareDevelopmentActivities主要内容Theprocessofsoftwaredevelopment基本概念和知识点Requirement,design,codeandtest问题与应用(能力要求)理解软件开发过程。融入点:在需求讲解中,引入走符合国情的人权发展道路这一思想,引导学生思考美国发展道路是否一定适合中国特色发展,进而思考需求分析的重要性。第二节IdentifyingClassesandObjects主要内容Assigningresponsibilities基本概念和知识点ClassandobjectThenounsinaproblemdescriptionmayindicatesomeoftheclassesandobjectsneededinaprogram问题与应用(能力要求)如何实现问题域向程序的转化。融入点:类是面向对象的核心概念,引入坚持以人民为中心的核心理念,在面向对象编程中,应围绕类展开相关设计。第三节classRelationships主要内容DependencyDependenciesamongobjectsofthesameclassAggregation基本概念和知识点Dependency,aggregationandinheritance问题与应用(能力要求)理解三种类关系,能够在应用实例中识别三种关系。融入点:社会是由关系构成的,程序世界是对现实世界的模拟,在此谈一下中国特色大国外交政策,引导学生由国际关系,思考类关系。第四节Staticclassmembersandthisreference主要内容StaticvariablesStaticmethodsThisreference基本概念和知识点Astaticvariableissharedamongallinstancesofaclass.thisallowsanobjecttorefertoitself.问题与应用(能力要求)理解什么场合使用static和this;能够读使用static和this关键字的程序,写出程序运行结果第五节Interfaces主要内容ThebasicconceptsofinterfaceHowtodefineaninterfaceHowtouseaninterfaceThecomparableinterfaceTheiteratorinterface基本概念和知识点Aninterfaceisacollectionofabstractmethodsandthereforecannotbeinstantiated.Anabstractmethodisamethodthatdoesnothaveanimplementation.Methodsininterfaceshavepublicvisibilitybydefault.AclassimplementsaninterfacebyprovidingmethodimplementationsforeachoftheabstractmethodsdefinedintheinterfaceIfaclassassertsthatitimplementsaparticularinterface,itmustprovideadefinitionforallmethodsintheinterface.问题与应用(能力要求)学会定义和使用接口;接口和抽象类的区别?使用场合?融入点:通过社会主义、中国特色社会主义、新时代中国特色社会主义之间的关系讲解接口,抽象的概念,不同时期的不同实现。第六节MethodDesignandMethodOverloading主要内容MethoddecompositionMethodparametersrevisitedMethodoverloading基本概念和知识点Wheneveramethodbecomeslargeorcomplex,weshouldconsiderdecomposingitintomultiplemethodstocreateamoreunderstandableclassdesign.Inanobject-orienteddesign,methoddecompositionmustbesubordinatetoobjectdecomposition.InJava,allparametersarepassedbyvalue.Parameterpassingislikeanassignmentstatement,assigningtotheformalparameteracopyofthevaluestoredintheactualparameter.Whenwepassanobjecttoamethod,weareactuallypassingareferencetothatobject.InJava,youcanusethesamemethodnamewithdifferentparameterlistsformultiplemethods.Thistechniqueiscalledmethodoverloading.Itisusefulwhenyouneedtoperformsimilarmethodsondifferenttypesofdata.问题与应用(能力要求)学会分解复杂方法,掌握分解程度;区分基本数据类型的参数传递和对象参数传递;掌握方法重载,理解其应用场合第七节LayoutManagers主要内容FlowLayoutBorderLayoutGridLayoutBoxLayoutContainmentHierachies基本概念和知识点Thelayoutmanagerofacontainerdetermineshowcomponentsarevisuallypresented.Whenchangesoccur,thecomponentsinacontainerreorganizethemselvesaccordingtothelayoutmanager’spolicy.Thelayoutmanagerforeachcontainercanbeexplicitlyset.AGUI’sappearanceisafunctionofthecontainmenthierarchyandthelayoutmanagersofeachcontainer.问题与应用(能力要求)掌握各种顶级容器的缺省布局;理解容器的分层结构融入点:结合我国特色大国外交策略讲解布局管理器。思考与实践如何由过程向对象转化;类和方法的设计;利用不同的布局管理器,结合已学习的组件,构建应用程序教学方法与手段以课堂讲授为主,在讲授过程中,通过具体的实例展示相关概念的应用。第七章Arrays目的与要求Defineandusearraysforbasicdataorganization.Discussboundscheckingandtechniquesformanagingcapacity.Discusstheissuesrelatedtoarraysasobjectsandarraysofobjects.Exploretheuseofcommand-linearguments.Describethesyntaxanduseofvariable-lengthparameterlists.Discussthecreationanduseofmultidimensionalarrays.教学内容第一节DeclaringandUsingArrays主要内容ArrayElementsBoundsCheckingAlternateArraySyntaxArraysasParametersArraysofObjectsCommand-LineArguments基本概念和知识点AnarrayofsizeNisindexedfrom0toN−1.InJava,anarrayisanobjectthatmustbeinstantiated.Boundscheckingensuresthatanindexusedtorefertoanarrayelementisinrange.Aninitializerlistcanbeusedtoinstantiateanarrayobjectinsteadofusingthenewoperator.Anentirearraycanbepassedasaparameter,makingtheformalparameteranaliasoftheoriginal.Instantiatinganarrayofobjectsreservesroomtostorereferencesonly.Theobjectsthatarestoredineachelementmustbeinstantiatedseparately.Command-lineargumentsarestoredinanarrayofStringobjectsandarepassedtothemainmethod.问题与应用(能力要求)掌握数组定义和使用;掌握数据作为参数传递的具体方式;掌握命令行参数传递方法第二节VariableLengthParameterandTwo-DimensionalArrays主要内容VariableLengthParameterTwo-DimensionalArraysMultidimensionalArrays基本概念和知识点atwodimensionalarrayhasvaluesintwodimensions,whichareoftenthoughtofastherowsandcolumnsofatable.Anarraycanhaveone,two,three,orevenmoredimensions.Anyarraywithmorethanonedimensioniscalledamultidimensionalarray.问题与应用(能力要求)(1)掌握变长参数列表的使用;(2)理解二维数组的定义和使用。融入点:从习近平主席不断扩大我国的“朋友圈”的思想中阐述不同维度的国家和社会组成(社会形态、种族构成等),尝试利用二维数组进行管理和分类。思考与实践数组作为参数传递的时候和基本变量,对象的传递有什么区别?教学方法与手段以课堂讲授为主。第八章Inheritance目的与要求Explorethederivationofnewclassesfromexistingones.Definetheconceptandpurposeofmethodoverriding.Discussthedesignofclasshierarchies.Discusstheissueofvisibilityasitrelatestoinheritance.Exploretheabilitytoderiveoneinterfacefromanother.Discussobject-orienteddesigninthecontextofinheritance.DescribetheinheritancestructureforGUIcomponents.教学内容第一节CreatingSubclasses主要内容HowtocreatesubclassTheprotectedmodifierThesuperreferenceMultipleinheritance基本概念和知识点Inheritanceistheprocessofderivinganewclassfromanexistingone.Onepurposeofinheritanceistoreuseexistingsoftware.Inheritancecreatesanis-arelationshipbetweentheparentandchildclasses.Protectedvisibilityprovidesthebestpossibleencapsulationthatpermitsinheritance.Aparent’sconstructorcanbeinvokedusingthesuperreference.问题与应用(能力要求)创建子类对象后,其内存存储情况如何?创建子类对象时,构造方法的执行过程?Protected修饰符如何应用?Super如何使用?融入点:讲文化传承,说明子类对父类的继承。第二节OverridingMethods主要内容OverridingmethodsShadowingvariablesThefinalmodifier基本概念和知识点Achildclasscanoverride(redefine)theparent’sdefinitionofaninheritedmethod.Ifavariableofthesamenameisdeclaredinachildclass,itiscalledashadowvariable.问题与应用(能力要求)方法和变量用final修饰有什么区别?什么场合使用重载和隐藏变量?融入点:西方文化,我们要取其精华,弃其糟粕,通过重写内化为中国特色的方法。第三节ClassHierarchies主要内容TheObjectclassAbstractclassesInterfaceHierarchies基本概念和知识点Achildclasscanoverride(redefine)theparent’sdefinitionofaninheritedmethod.Thechildofoneclasscanbetheparentofoneormoreotherclasses,creatingaclasshierarchy.Commonfeaturesshouldbelocatedashighinaclasshierarchyasisreasonablypossible.AllJavaclassesarederived,directlyorindirectly,fromtheObjectclass.ThetoStringandequalsmethodsareinheritedbyeveryclassineveryJavaprogram.Anabstractclasscannotbeinstantiated.Itrepresentsaconceptonwhichotherclassescanbuildtheirdefinitions.Aclassderivedfromanabstractparentmustoverrideallofitsparent’sabstractmethods,orthederivedclasswillalsobeconsideredabstract.Inheritancecanbeappliedtointerfacessothatoneinterfacecanbederivedfromanother.Privatemembersareinheritedbythechildclass,butcannotbereferenceddirectlybyname.Theymaybeusedindirectly,however.Softwaredesignmustcarefullyandspecificallyaddressinheritance.Thefinalmodifiercanbeusedtorestrictinheritance.问题与应用(能力要求)Object类的使用规则;抽象类在什么情况下使用?接口的继承和类的继承有什么区别?融入点:谈谈党和国家机构职能体系,讲解类的继承结构。第四节TheComponentclassHierarchy主要内容Thecomponentclasshierarchy基本概念和知识点JComponnet,AWT,Swing问题与应用(能力要求)掌握Gui界面中组件的继承层次思考与实践Java中如何实现多重继承?类继承和接口继承的区别?适用的场合?充分理解继承的概念,在Gui界面设计中应用继承的思想,实现结构合理的代码。教学方法与手段以课堂讲授为主。第九章Polymorphism目的与要求Definepolymorphismandexploreitsbenefits.Discusstheconceptofdynamicbinding.Useinheritancerelationshipstocreatepolymorphicreferences.Useinterfacestocreatepolymorphicreferences.Exploresortingandsearchingusingpolymorphicimplementations.Discussobject-orienteddesigninthecontextofpolymorphism.教学内容第一节Polymorphism主要内容LatebindingPolymorphismviaInheritancePolymorphismviaInterfaces基本概念和知识点Apolymorphicreferencecanrefertodifferenttypesofobjectsovertime.Thebindingofamethodinvocationtoitsdefinitionisperformedatruntimeforapolymorphicreference.Areferencevariablecanrefertoanyobjectcreatedfromanyclassrelatedtoitbyinheritance.Thetypeoftheobject,notthetypeofthereference,isusedtodeterminewhichversionofamethodtoinvoke.Aninterfacenamecanbeusedtodeclareanobjectreferencevariable.Aninterfacereferencecanrefertoanyobjectofanycla
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 镇优化营商环境工作制度
- 镇政府行政复议工作制度
- 镇网络舆情管理工作制度
- 门卫室值班人员工作制度
- 门诊急诊护士长工作制度
- 门诊部无烟小组工作制度
- 防洪抗旱抢险队工作制度
- 防诈骗安全宣传工作制度
- 院级团委工作制度汇编范本
- 隔离转运管控组工作制度
- 医疗器械经营企业质量管理体系文件(2024版)
- 企业经营沙盘模拟
- 2024年广东省广州市中考道德与法治试卷
- 期中学情评估卷(含答案)2024-2025学年晋教版七年级地理下册
- 2024年高速铁路建筑工程保险费用合同
- T-GXAS 807-2024 不孕不育夫妇生育力评估规范
- 作战训练安全课件
- S7-200 SMART PLC完全精通教程课件:S7-200 SMART PLC的运动控制及其应用
- 装配式混凝土箱梁桥设计与施工技术规范DB41-T 1847-2019
- 规范信访基础业务培训
- 分汽缸安装施工方案
评论
0/150
提交评论