對于這個Demo 的輸出如何理解?System.out.println(this.num); 中this指向的是哪個對象?System.out.println(this); 中this指向的又是哪個對象??根據System.out.println(this);的輸出來看? 這個this指的應該是Zi對象無疑,但是this.num為什么又會是1呢?求解答,感激不盡!
繼承關系中 this的使用問題
月亮島Superman
2017-12-08 11:14:58