9
I discovered that interfaces and abstract classes cannot be instantiated, but my teacher gave me an example that left me in doubt, because it seems very an instance of interface
ActionListener
.
Follows the code:
ActionListener tarefa = (new ActionListener() {
public void actionPerformed(ActionEvent e) {
HORAS();
}
});
Thank you so much for the explanation! I will study more about anonymity implementation of classes. New concept. Thank you so much!
– Marcos Davi Spindola