12345678910111213141516171819202122232425262728293031 |
- package J20250717.demo05;
- /**
- * @author WanJl
- * @version 1.0
- * @title YaSe
- * @description
- * @create 2025/7/17
- */
- public class YaSe extends Hero{
- {
- this.setName("亚瑟");
- }
- public YaSe() {
- debut();
- }
- public YaSe(String name, int hp, int mp, int attack, int speed, int defenses) {
- super(name, hp, mp, attack, speed, defenses);
- debut();
- }
- /**
- * 英雄登场的方法
- */
- @Override
- public void debut() {
- System.out.println(this.getName()+"登场.....");
- }
- }
|