CoreJava/com/experiment/DragonSlayer.java

17 lines
349 B
Java
Raw Permalink Normal View History

2024-05-09 09:10:51 +08:00
package com.experiment;
public class DragonSlayer extends Role {
public DragonSlayer(){
super("屠龙者", "0001", 10000);
}
public DragonSlayer(String name, String id, int health){
super(name, id, health);
}
public void finishingMove(){
System.out.println(getName()+"发动了"+"降龙掌");
}
}