Quote:Dwarves_Inheritance.java:8: error: constructor Dwarves in class Dwarves cannot be applied to given types; Dwarves sleepy = new Dwarves("Sleepy",238,41); ^ required: int,int found: String,int,int reason: actual and formal argument lists differ in length 1 error
public class Dwarves_Inheritance { public static void main(String[] args) { Dwarves sleepy = new Dwarves("Sleepy",238,41); System.out.println(sleepy); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)