1
I’m having a question about the method override of an interface. I can override a method in a daughter class that inherits from the mother class the implementation of an interface and in that method use receiving parameters?
Interface:
public interface Pagavel {
public abstract double getValorAPagar();
}
Mother Class:
public abstract class Conta implements Pagavel {
public abstract double getValorAPagar();
}
Classe Filha:
public class Titulo extends Conta{
public double getValorAPagar(int param1, int param2){
// implementação.
}
}
I understand. Thank you very much.
– Isaque Fernando