Re: Inheritance not working!
Declare the constructor to throw the exception - this will force any code that constructs a SenderReceiver to throw or catch the exception. See Lesson: Exceptions (The Java™ Tutorials > Essential Classes)
Re: Inheritance not working!
Thanks for the reply. I tried this:
Code :
public SenderReceiver(String host,int port)throws IOException{
super(host,port);
}
but get a "cannot retrieve symbol"
Re: Inheritance not working!
Post the full error. Did you import java.io.IOException?
Re: Inheritance not working!
ah, it looks like my objects were causing the issue. I shall have a look to see why that is. The throws IOException did the trick, thanks for your help copeg, much appreciated!