LOL game

package com.Lol;

public class Hero {
String name;
String skill_q;
String skill_w;
String skill_e;
String skill_r;
public Hero(String name){
this.name = name;
}
public Hero(String name,String skill_q,String skill_w,String skill_e,String skill_r){
this(name);
this.skill_q = skill_q;
this.skill_w = skill_w;
this.skill_e = skill_e;
this.skill_r = skill_r;
}
public void fight(){
System.out.println(this.name + "在杀敌" + this.skill_q + "牛波class");
}

public static void main(String[] args) {
Hero hero = new Hero("盖伦","q","w","e","r");
hero.fight();
}
}
posted @ 2022-05-13 10:01  小松2739  阅读(51)  评论(0编辑  收藏  举报