So I am currently working through bug testing some of my code, and I seem to be getting this error:
constructor Being in class Being cannot be applied to given types;
public class Monster extends Being{
^
required: String,String
found: no arguments
reason: actual and formal argument lists differ in length
Here is a sample from my code: (Parent)
public abstract class Being{
public String name;
public Race race;
public int str = 10, agi = 10, con = 10, wis = 10, HP, MP, tHP, tMP, lvl;
//Object Creator
public Being(String n, String rce){
name = n;
tHP = (con/2) + 10;
tMP = (wis/2) + 10;
HP = tHP;
MP = tMP;
lvl = 1;
}
}
(Child)
public class Monster extends Being{
private Monster m = new Monster();
}
This is just a small example. I've tried many different ways of creating the constructor in Monster.java, but every time I come out with the same error. Someone please help!