<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
7/13 Java/Objects
<In what way does your code behave incorrectly? Include ALL error messages.>
I don’t know why error keeps popping up.
int age;
public Dog(int dogsAge) {
age = dogsAge;
}
public static void main(String[] args) {
Dog mySpike = new Dog(9);
}
}
Replace this line with your code.
<do not remove the three backticks above>