第五周学习总结

20182312 2019-2020-1 《数据结构与面向对象程序设计》第五周学习总结

教材学习内容总结

1用super调用父类中的方法
2继承:从一个已有的类派生一个新类的过程,目的是为了更快更节约的完成程序。
3学习凯撒密码在Java中的写法

教材学习中的问题和解决过程

  • 问题1:super怎么用?
  • 问题1解决方案:从书上代码发现直接在子类中引用即可

代码调试中的问题和解决过程

  • 问题1:实验中经常出现connection time out
  • 问题1解决方案:问学长之后发现关掉防火墙即可
  • 问题2:作业中反复出现很多的代码,太长了
  • 问题2解决方案:可以使用super或者继承,简略代码长度。

代码托管

上周考试错题总结

  • The instruction super( ); does which of the following?
    A
    .
    calls the method super as defined in the current class
    B
    .
    calls the method super as defined in the current class'parent class
    C
    .
    calls the method super as defined in java.lang
    D
    .
    calls the constructor as defined in the current class
    E
    .
    calls the constructor as defined in the current class'parent class 正确答案:E 我的答案:B 解析:The instruction super represents an invocation of something in the current class'parent class. Since there is no message but merely super( ), it is an invocation of the parent class'constructor.
  • Java does not support multiple inheritance, but some of the abilities of multiple inheritance are available by
    A
    .
    importing classes
    B
    .
    implementing interfaces
    C
    .
    overriding parent class methods
    D
    .
    creating aliases
    E
    .

using public rather than protected or private modifiers 正确答案:B 我的答案 :E 解析:Since a class can implement any number of interfaces, that class is in essence using the interface classes as if those interfaces were defined in this class. So, this class is inheriting the methods and constants of the interfaces.

点评过的同学博客和代码

  • 本周结对学习情况


- 结对学习内容
    - 互相交替写了服务器和客户端,受益匪浅
    - 相互交流了对继承的理解。

其他(感悟、思考等,可选)

多练多练,不多练就什么也不会,而且不能盲目的学习,要知道自己每一次代码到底错在哪,并去对应的寻找方法。

学习进度条

代码行数(新增/累积) 博客量(新增/累积) 学习时间(新增/累积) 重要成长
目标 5000行 30篇 400小时
第一周 200/200 2/2 20/20
第二周 300/500 2/4 18/38
第三周 500/1000 3/7 22/60
第五周 1000/2198 2/9 20/80

尝试一下记录「计划学习时间」和「实际学习时间」,到期末看看能不能改进自己的计划能力。这个工作学习中很重要,也很有用。
耗时估计的公式:Y=X+X/N ,Y=X-X/N,训练次数多了,X、Y就接近了。

参考:软件工程软件的估计为什么这么难软件工程 估计方法

  • 计划学习时间:30小时

  • 实际学习时间:20小时

  • 改进情况:

(有空多看看现代软件工程 课件
软件工程师能力自我评价表
)

参考资料

posted on 2019-10-07 23:42  shouko  阅读(238)  评论(2编辑  收藏  举报