SHARE
TWEET

Untitled

a guest Jun 19th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Goblin extends Monster {
  2.     String name = "ゴブリン";
  3.     int hp = 10;
  4.  
  5.     public Goblin(String name) {
  6.         this.name = this.name + " " + name;
  7.     }
  8.  
  9.     public void run() {
  10.         System.out.println(this.name + "は、必死に逃げ出した!");
  11.     }
  12. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top