Re: abstract class and method
- From: "Rebecca" <RaSapir@xxxxxxxxx>
- Date: 29 Nov 2005 13:52:18 -0800
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?
.
- References:
- abstract class and method
- From: marcpirat
- abstract class and method
- Prev by Date: Creating an object during runtime
- Next by Date: Re: Creating an object during runtime
- Previous by thread: abstract class and method
- Next by thread: Creating an object during runtime
- Index(es):