Java Community | Help. Code. Learn.JC|HCL
Java Community | Help. Code. Learn.โ€ข3y agoโ€ข
9 replies
F4F

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.
Was this page helpful?