摘要:
通过实例学习Java继承一、新建Animal基类public abstract class Animal {protected int legs;protected Animal(int legs){this.legs = legs;}public Animal(){}public void walk(){}public void eat(){}}二、新建Pet Interfacepublic i... 阅读全文
语虫
向你学习! |
|
|