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
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @Gosti! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Carter
Carter2y ago
wdym by List method
F4F
F4FOP2y ago
Wdym?
Carter
Carter2y ago
Wdym wdym what is a List method
F4F
F4FOP2y ago
This method must return a List of all figures that have an area less than 30cm2
Carter
Carter2y ago
What you have already should work
JavaBot
JavaBot2y ago
💤 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.
Want results from more Discord servers?
Add your server