I\'m completely new to Java, so I\'m sorry if my question is dumb. Im working on this assignment, and I\'ve been reading about main methods for hours now, but I just cant fi
When your class explicitly defines constructor, implicit no-arg constructor won't be created.
You have explicit constructor in your class
public Player(String nickName, String playerType)
{
nick = nickName;
type = playerType;
health = 100;
System.out.println("Welcome " + nick +" the " + type + ". I hope you are ready for an adventure!");
}
And trying to invoke no-arg constructor
Player player = new Player();
Either you need to pass parameters in above code (or) create no-arg constructor.