![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Tinking in java
shanhuhauu
这个作者很懒,什么都没留下…
展开
-
内部类生成外部类对象
package com.liuc.test.think.chapter9; public class DotThis { public void f(){ System.out.println("DoThis.f()"); }; public class Inner{ public DotThis outer(){ return DotTh...原创 2012-05-22 22:00:40 · 147 阅读 · 0 评论 -
赋值语句
package com.liuc.test; public class Assignment { public static void main(String[] args) { Tank tank1=new Tank(); Tank tank2=new Tank(); tank1.level=9; tank2.level=47; Sys...原创 2012-04-05 21:51:15 · 66 阅读 · 0 评论 -
值传递
package com.liuc.test.think; public class PassObject { public static void main(String[] args) { Letter x=new Letter(); x.c='A'; System.out.println("x.c="+x.c); change(x); System....原创 2012-04-05 22:07:56 · 53 阅读 · 0 评论