Java????????????
???????????? ???????[ 2013/4/1 9:47:59 ] ????????
???????н????
????2???????????????з??????????????????ж?????????????????
??????????“?????ж????????????”??仰?????????????????????????????????????????????????д???????????????????????踸?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????Java ??????н?????????? Object?????? Object ?????????????й???????????и???????????????????????л??????????????????????????????????????????????????????????????????????????????в?????????????????????????????????????????????
public class Test{
class Base { //????
int i = 2;
}
public class Child extends Base{ //????
int i = 20;
}
public static void main(String[] args) {
Test test = new Test();
Child child = test.new Child();
Base base = child;
System.out.println(" Base.i : " + base.i);
System.out.println("Child.i : " + child.i);
}
}
???????н????
????5??final???η?
????final???????????????????????????????????????
????1??final???ε????????????????
????????final???????? ???????
????????????????????final???????????????
??????????????final??????????????
????2??final???ε??????????????
????????final?????????????
???????????????????final???????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11