正在加载图片...
(2)接口和抽象类的区别?使用场合? 融入点:通过社会主义、中国特色社会主义、新时代中国特色社会主义之 间的关系讲解接口,抽象的概念,不同时期的不同实现。 第六节Method Design and Method Overloading 1.主要内容 (1)Method decomposition (2)Method parameters revisited (3)Method overloading 2.基本概念和知识点 (1)Whenever a method becomes large or complex,we should consider decomposing it into multiple methods to create a more understandable class design. (2)In an object-oriented design,method decomposition must be subordinate to oblect decomposition. (3)In Java,all parameters are passed by value (4)Parameter passing is like an assignment statement, assigning to the formal parameter a copy of the value stored in the actual parameter. (5)When we pass an object to a method,we are actually passing a reference to that object. (6)In Java,you can use the same method name with different parameter lists for multiple methods.This technique is called method overloading.It is useful when you need to perform similar methods on different types of data. 3.问题与应用(能力要求) (1)学会分解复杂方法,掌握分解程度: (2)区分基本数据类型的参数传递和对象参数传递: (3)掌握方法重载,理解其应用场合 第七节Layout Managers 1.主要内容 (1)Flow Layout (②)Border Layout (3)Grid Layout (4)Box Layout (5)Containment Hierachies 1919 (2) 接口和抽象类的区别?使用场合? 融入点:通过社会主义、中国特色社会主义、新时代中国特色社会主义之 间的关系讲解接口,抽象的概念,不同时期的不同实现。 第六节 Method Design and Method Overloading 1.主要内容 (1) Method decomposition (2) Method parameters revisited (3) Method overloading 2.基本概念和知识点 (1) Whenever a method becomes large or complex, we should consider decomposing it into multiple methods to create a more understandable class design. (2) In an object-oriented design, method decomposition must be subordinate to object decomposition. (3) In Java, all parameters are passed by value. (4) Parameter passing is like an assignment statement, assigning to the formal parameter a copy of the value stored in the actual parameter. (5) When we pass an object to a method, we are actually passing a reference to that object. (6) In Java, you can use the same method name with different parameter lists for multiple methods.This technique is called method overloading . It is useful when you need to perform similar methods on different types of data. 3.问题与应用(能力要求) (1) 学会分解复杂方法,掌握分解程度; (2) 区分基本数据类型的参数传递和对象参数传递; (3) 掌握方法重载,理解其应用场合 第七节 Layout Managers 1.主要内容 (1) Flow Layout (2) Border Layout (3) Grid Layout (4) Box Layout (5) Containment Hierachies
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有