Interface
Hello! I have question about methods in interface.
I have got class like triangle, square this class implements my interface "Figures"
In interface I have got methods " double countArea();"
how I can create List method in interface?
Is this good idea -> "List<Figures> areasSmallerThan();" ?
Thanks for your answers.
7 Replies
⌛
This post has been reserved for your question.
Hey @Gosti! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
wdym by List method
Wdym?
Wdym wdym
what is a List method
This method must return a List of all figures that have an area less than 30cm2
What you have already should work
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.