Re: abstract class and method



There is nothing qrong with having overloaded abstract methods with
same name, different parameters. Following works fine for me:

bstract public class Protocol {


protected Passerelle passerelle;


public Passerelle getPasserelle(){
return passerelle;
}


public void setPasserelle(Passerelle pass){
passerelle=pass;
}


public Protocol(){
passerelle = new Passerelle();
}
abstract public String processInput(String theInput, Socket socket,

Object obj);
abstract public String processInput(String theInput, Object obj);

}

What is the error you are getting?

.