封箱和拆箱

MyClass mc1 = new MyClass();

object mc2 = mc1;

也可以把对象封为接口

posted @ 2011-07-18 11:02  绯色卡卡  阅读(259)  评论(0编辑  收藏  举报