2
I would like to know because I did not understand this part, it is because it is a statement that it can "launch" an exception?
//EXEMPLO
public abstract class Personagem{
public abstract void atacar() throws Exception;
}
//Atacar é abstrato
//logo abaixo quando eu herdo eu posso tirar o throws Exception da assinatura.
public class Mago extends Personagem{
public void atacar(){
}
}
I don’t understand your question. Be clearer please. Put the code you have doubt.
– Filipe L. Constante
I hope I’ve made more concrete what I meant.
– Filipe Farias