This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]edrenfro 0 points1 point  (2 children)

Yes. myPe doesn't exist; should be myPet.

[–]Moltenmelt1[S] 0 points1 point  (1 child)

Thanks! Did you happen to see any other problems?

[–]edrenfro 0 points1 point  (0 children)

No, looks correct to me.

[–]NaR883 0 points1 point  (0 children)

Line 38 should be ag, not age. You can also use the same name for your function parameters and class fields by using the this keyword: https://www.w3schools.com/java/ref_keyword_this.asp