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 →

8.4 Choosing — implement two interfaces

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

Write Note that implements both interfaces. A class may implement as many as it likes, but must supply every method of each.

label() returns "Note: " plus the text; size() returns its length. The program prints Note: hello and 5.

Your solution