Task 2 of 9 · 0 solved · 9 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

4.3 Instance methods — greeting method

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in greeting so that it returns the dog's name followed by " says woof".

This method belongs to the object, so it can use the field name directly — no parameter needed. The program prints Rex says woof.

Your solution