SHARE
TWEET

Untitled

a guest Jun 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Goblin extends Monster {
  2.   static final int INITIAL_HP = 10;
  3.  
  4.   public Goblin(String name) {
  5.     super("ゴブリン " + name, INITIAL_HP); // 必ず基底クラスのコンストラクターを呼ぶ
  6.   }
  7. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top