摘要:
package com.hspedu.polyarray_; import org.junit.Test; public class TestPolyArray { /** * 多态数组 */ @Test public void testPolyArray() { Animal[] animals 阅读全文
摘要:
package com.hspedu.dynamicbind_; import org.junit.Test; public class TestDynamicBind { @Test public void testDynamicBind() { Base sub = new Sub(); /** 阅读全文
摘要:
package com.hspedu.instanceof_;import org.junit.Test;public class TestInstanceof { @Test public void testInstanceof() { Son son = new Son(); System.ou 阅读全文