摘要:
package com.xdf.demo; /** * 匿名内部类 */public interface Animal { /** * 所有动物吃饭的方法 */ void eat();}*************************************** package com.xdf.d 阅读全文
摘要:
package com.xdf.demo; public abstract class Animal { // 所有动物的父类 private String name; // 姓名 private String strain; // 品种 private char sex; // 性别 /** * 阅读全文
摘要:
package com.xdf.exam; public class A { public String show(D d) { return " A ADN D"; } public String show(A a) { return " A ADN A"; } ***************** 阅读全文
摘要:
阅读全文
摘要:
package com.xdf.demo; public abstract class Animal { // 所有动物的父类 private String name; // 姓名 private String strain; // 品种 private char sex; // 性别 /** * 阅读全文
摘要:
package com.whxiong.work06;/* * 动物类接口 */public interface Animal { /** * 动物的叫声 */ void shout();} /** * 狗狗类 * @author whx */ class Dog implements Animal 阅读全文
摘要:
阅读全文