You must log in or register to comment.
In Java, it’s not called the
Crackable
interface.It’s the
Nuttable
interface.How do I know if something is
Nuttable
?Actually it’s
AbstractNutAndShellsFactory
Provided your method specifies a strongly bound type you can ensure that you get your nut.
void dischargeNut(T extends Nut) { ... }
strongly bound you say?