I'm having a question about overwriting methods of an interface. Can I override a method in a child class that inherits from the parent class the implementation of an interface and in that method use receive parameters?
Interface:
public interface Pagavel {
public abstract double getValorAPagar();
}
Mother Class:
public abstract class Conta implements Pagavel {
public abstract double getValorAPagar();
}
Daughter Class:
public class Titulo extends Conta{
public double getValorAPagar(int param1, int param2){
// implementação.
}
}