package polymorphismDemo;
import interfaceDemo.ADAPHero;
import interfaceDemo.ADHero;
import interfaceDemo.APHero;
import objectAndClass.Hero;
/**
*
* @author q06285:
* @version 创建时间:2019年9月24日 下午4:48:24
*
*/
public class MortalDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
Hero Garen = new ADHero();
ADHero ad = new ADHero();
APHero ap = new APHero();
ADAPHero sx = new ADAPHero();
Garen.kill(ad);
Garen.kill(ap);
Garen.kill(sx);
}
}
网友评论