Java Constructor Parameters 5/13


#1



The instruction: 1.
Add an int parameter called dogsAge in between the parentheses of the Dog() constructor.

I tried adding (int age), (int Age), (int dogsAge), (int dogsage)

none of them seem to work. is the question bugged?


Replace this line with your code.


#2

Use the one they said and clean up the rest of the formatting so that you don't have a bunch of weirdness that the test doesn't anticipate when looking for your parameter list. And if you're asked to put the method in some particular location make sure you're really putting it there


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.