程序实现方法
【1】顺序执行(自上而下)
【2】int a=10; 从右至左执行
将“10”赋给“a”
驼峰命名法
由三节组成时,第二,三节首字母大写。
getNumLeagth
1bit
1Byte
2Bytes short
4Bytes int
8Bytes long
4Bytes float
8Bytes double
1bit boolean
2Bytes char
Type Casting 类型转换
widening casting(automatically)自动转
byte>short>char>int>long>float>double
narrowing casting(manually)手动转 强制类型转换
double>float>long>int>char>short>byte
【byte b=(byte)128;】
变量{动态变量static,成员变量}
数据类型{基础数据类型(8种)int,float......,引用数据类型}
int i = 10--->实现
左值 右值
规范 实现
Warrior warrior = new warrior(1,"花木兰",true,1000,800);
Operator(操作符)
new:(1)分配内存(2)初始化(3)赋值(4)this