主题:[求助]java 如图用Student实例化3个对象后,在内存中应该是哪幅图?
主要是不知道那个相同的getAge()方法在内存里有多少份,放在哪?说不清楚,呵,就画出来了.请大家帮忙看看 (我放百度空间的相册里了,链接很安全)
程序:
http://hiphotos.baidu.com/anuobiss/pic/item/7662bdfac36f389859ee9095.jpg
图:
http://hiphotos.baidu.com/anuobiss/pic/item/a480b9f3759865c40a46e095.jpg
http://hiphotos.baidu.com/anuobiss/pic/item/da5924235b8fbf4bad34de95.jpg
程序:
http://hiphotos.baidu.com/anuobiss/pic/item/7662bdfac36f389859ee9095.jpg
图:
http://hiphotos.baidu.com/anuobiss/pic/item/a480b9f3759865c40a46e095.jpg
http://hiphotos.baidu.com/anuobiss/pic/item/da5924235b8fbf4bad34de95.jpg