- 博客(3)
- 收藏
- 关注
原创 java成员变量的初始化
java变量的初始化一,成员变量的初始化最简单的初始化public class BedAndBreakfast { // initialize to 10 public static int capacity = 10; // initialize to false private boolean full = false;}如果初始化变量时有一些复杂的逻辑,比如首先正常取值,在取值失败时再采用默认值,这时可以考虑将其放到构造函数中:public class
2021-06-29 17:34:26
1010
原创 理解java类成员变量
Understanding Class Members理解类成员变量@TOCstatic描述符的提出(class variables)When a number of objects are created from the same class blueprint, they each have their own distinct copies of instance variables. In the case of the Bicycle class, the instance variab
2021-05-25 22:48:14
178
原创 Visual Studio2019常用快捷键
Visual Studio2019常用快捷键快速查找和替换ctrl + shift + H快速跳转至文件的特定行Ctrl + G代码对齐 1、选中需要对齐的行2、CTRL+K3、CTRL+F代码左缩进Tab+Shift快速跳出匹配的括号Tab找到匹配的反括号“Ctrl+}”(光标会跳转到反括号)此方法适用于[ ] , ( ) , { } , “ ”...
2021-05-15 11:09:32
524
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人