Task 6 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 — increment method

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

Fill in increment so that it adds 1 to the object's count field. It returns nothing — it changes the object.

main calls it twice, so the program prints 2.

Your solution