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.
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.