I’m having the exact same problem. I copied the example exactly but put in the information the instructions ask for but I still get an error asking if I called the bark method::
class Dog {
int age;
public Dog(int dogsAge) {
age = dogsAge;
}
public void bark() {
System.out.println("Woof!");
}
public static void main(String[] args) {
Dog spike = new Dog(4);
spike.bark();
}
}