Ninth records of career
来源:互联网 发布:淘宝美工前景怎么样 编辑:程序博客网 时间:2024/06/05 07:05
December 1,2016.
A new month ,a new beginning,the new day has a new challenge,so do not stay in place.
If today you hava a little more knowledge than yesterday,then you will have the harvest.
knowledge id not all of a sudden,it is a little bit of accumulation.
NOTES
//Java中可以定义没有方法体的方法
//当一个类里面包含了抽象方法时,该类必须被abstract修饰,被修饰的类称为抽象类
//抽象类里面乐意没有抽象方法
// 当一个方法没有具体的实现方式时,我们把方法体省略,
// 用abstract修饰该方法,被abstract的方法叫抽象方法
当一个具体的类继承抽象类时,必须要将它实现了
当一个非抽象类类继承一个抽象类时 要实现抽象类里面的抽象方法
初学者编写程序可以养成习惯:先写注释再写代码。
将自己的思想通过注释先整理出来,在用代码去体现。
因为代码仅仅是思想的一种体现形式而已。
两个明确
• 明确要定义的功能最后的结果是什么?
• 明确在定义该功能的过程中,是否需要未知内容参与运算
示例:
• 需求:定义一个功能,可以实现两个整数的加法运算。
• 分析:
• 该功能的运算结果是什么?两个数的和,也是一个整数(int)
• 在实现该功能的过程中是否有未知内容参与运算?加数和被加数是 不确
定的。(两个参数int,int)
• 代码:
int getSum(int x,int y)
{
return x+y;
}
类与对象的关系
类是对象的抽象,对象是类的具体实例
类的声明
[修饰符] class [类名]{
成员变量(属性)+方法(行为)
}
This is notes, is also a life, and grow。
- Ninth records of career
- Second records of career
- Third records of career
- Fourth records of career
- Fifth records of career
- Sixth records of career
- Seventh records of career
- Eighth records of career
- Tenth records of career
- Eleventh records of career
- Twelfth records of career
- Thirteenth records of career
- Fourteenth records of career
- Four stages of career
- Career
- career
- Records
- Records
- FZU1055-赋值问题
- The JSP specification requires that an attribute name is preceded by whitespace
- python简易图片处理(2):环境配置以及Anaconda相关知识
- Halcon中图像的显示
- Servlet3.0介绍~使用注解标注监听器(Listener)和过滤器(Filter)
- Ninth records of career
- ActiveMQ的持久化与集群
- Linux ssh登录命令
- 关于java与C的一些思考
- OKVIS 硬件配置和符号表示
- 借助MATLAB标定工具箱标定相机
- sql server中的小问题
- leetcode note--leetcode 283. Move Zeroes
- 自定义camera遇到过的坑