楼主: qzhan054
跳转到指定楼层
上一主题 下一主题
收起左侧

[入门|算法|数据结构] CS 61B Spring 2018

🔗
 楼主| qzhan054 2018-11-14 12:02:50 | 只看该作者
全局:
November 13, 2018. Lecture 2.1 review again.

补充内容 (2018-11-14 12:20):
It turns out our Mystery has a simple solution: When you write y = x, you are telling the Java interpreter to copy the bits from x into y. This Golden Rule of Equals (GRoE) is the root of all truth...
回复

使用道具 举报

🔗
 楼主| qzhan054 2018-11-14 12:20:57 | 只看该作者
全局:
qzhan054 发表于 2018-11-14 12:02
November 13, 2018. Lecture 2.1 review again.

补充内容 (2018-11-14 12:20):

It turns out our Mystery has a simple solution: When you write y = x, you are telling the Java interpreter to copy the bits from x into y. This Golden Rule of Equals (GRoE) is the root of all truth when it comes to understanding our Walrus Mystery.
回复

使用道具 举报

🔗
笨笨李 2018-11-15 09:46:50 | 只看该作者
全局:
nov 14 completed
回复

使用道具 举报

🔗
lynntsui 2018-11-15 13:56:15 | 只看该作者
本楼:
全局:
同刷 资瓷
回复

使用道具 举报

🔗
agenhcx 2018-11-16 03:01:25 | 只看该作者
全局:
同求组队讨论,在做proj1b
回复

使用道具 举报

🔗
 楼主| qzhan054 2018-11-17 22:35:54 | 只看该作者
全局:
November 17,

前几天忙于web development以及其他的琐事,进度有延误。今天补齐。
回复

使用道具 举报

🔗
 楼主| qzhan054 2018-11-18 12:19:09 | 只看该作者
全局:
November 17, Lecture 2.2 completed.
回复

使用道具 举报

🔗
 楼主| qzhan054 2018-11-20 11:46:47 | 只看该作者
全局:
November 19, Lecture 2.2 review.

补充内容 (2018-11-20 12:17):
When you create a public member (i.e. method or variable), be careful, because you're effectively committing to supporting that member's behavior exactly as it is now, forever.

补充内容 (2018-11-20 12:18):
If the nested class has no need to use any of the instance methods or variables of SLList, you may declare the nested class static, as follows. Declaring a nested class as static means that methods...
回复

使用道具 举报

🔗
 楼主| qzhan054 2018-11-20 12:18:36 | 只看该作者
全局:
If the nested class has no need to use any of the instance methods or variables of SLList, you may declare the nested class static, as follows. Declaring a nested class as static means that methods inside the static class can not access any of the members of the enclosing class. In this case, it means that no method in IntNode would be able to access first, addFirst, or getFirst.
回复

使用道具 举报

🔗
 楼主| qzhan054 2018-11-20 12:20:13 | 只看该作者
全局:
A simple rule of thumb is that if you don't use any instance members of the outer class, make the nested class static.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表