正在加载图片...
2.Discuss the concept of dynamic binding 3.Use inheritance relationships to create polymorphic references. 4.Use interfaces to create polymorphic references. 5.Explore sorting and searching using polymorphic implementations. 6.Discuss object-oriented design in the context of polymorphism. (二)教学内容 第一节Polymorphism 1.主要内容 (1)Late binding (2)Polymorphism via Inheritance (3)Polymorphism via Interfaces 2.基本概念和知识点 (1)A polymorphic reference can refer to different types of objects over time (2)The binding of a method invocation to its definition is performed at run time for a polymorphic reference. (3)A reference variable can refer to any object created from any class related to it by inheritance. (4)The type of the object,not the type of the reference,is used to determine which version of a method to invoke. (5)An interface name can be used to declare an object reference variable (6)An interface reference can refer to any object of any class that implements that interface. (7)A parameter to a method can be polymorphic,giving the method flexible control of its arguments. 3.问题与应用(能力要求) (1)理解多态的作用: (2)掌握多态的两种实现方式。 融入点:引入建设包容和开放型世界经济思想,多态概念的引入本质上是 提供更为开放,包容的使用方式。 (三)思考与实践 对比使用多态和不使用多态的程序区别 (四)教学方法与手段25 2.Discuss the concept of dynamic binding. 3.Use inheritance relationships to create polymorphic references. 4.Use interfaces to create polymorphic references. 5.Explore sorting and searching using polymorphic implementations. 6.Discuss object-oriented design in the context of polymorphism. (二)教学内容 第一节 Polymorphism 1.主要内容 (1) Late binding (2) Polymorphism via Inheritance (3) Polymorphism via Interfaces 2.基本概念和知识点 (1) A polymorphic reference can refer to different types of objects over time. (2) The binding of a method invocation to its definition is performed at run time for a polymorphic reference. (3) A reference variable can refer to any object created from any class related to it by inheritance. (4) The type of the object, not the type of the reference, is used to determine which version of a method to invoke. (5) An interface name can be used to declare an object reference variable. (6) An interface reference can refer to any object of any class that implements that interface. (7) A parameter to a method can be polymorphic, giving the method flexible control of its arguments. 3.问题与应用(能力要求) (1) 理解多态的作用; (2) 掌握多态的两种实现方式。 融入点:引入建设包容和开放型世界经济思想,多态概念的引入本质上是 提供更为开放,包容的使用方式。 (三)思考与实践 对比使用多态和不使用多态的程序区别。 (四)教学方法与手段
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有