<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.>
https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/classes-constructor-parameters?action=lesson_resume&link_content_target=interstitial_lesson
<In what way does your code behave incorrectly? Include ALL error messages.>
im not getting an error message. it is saying i did not “add the dogsAge
parameter to the constructor”.
class Dog {
int age;
public Dog (int dogsAge) {
age = dogsAge;
}
public static void main(String[] args) {
}
}
<do not remove the three backticks above>