class Gerente extends Funcionario implements Autenticavel {
It means that Gerente
implements the interface Autenticavel
, or Funcionario
that will implement the interface?
class Gerente extends Funcionario implements Autenticavel {
It means that Gerente
implements the interface Autenticavel
, or Funcionario
that will implement the interface?
Gerente
will implement there right below. The signature of this class has the interface, so it is this class that you have to implement.
If Funcionario
had already implemented, even if a reimplementation is done in Gerente
, it would not need to declare in that class, it would already be implicitly declared by it to have inherited from a class that already has the interface.