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

4.2 Constructors — Circle constructor with this

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

Write a constructor for Circle whose parameter is also called radius. Because the names clash, use this.radius to say which one is the field.

The program prints 5.

Your solution