<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.>
Why don’t regonize de variable ‘age’ in code?
<In what way does your code behave incorrectly? Include ALL error messages.>
Did you create an instance variable called age
? Place it inside of the class, but before the Dog constructor.
Run
Replace this line with your code.
class Dog{
int age;
//class constructor
public Dog(){
}
public static void main(String args) {
}
}
<do not remove the three backticks above>