If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

which works fine and if you look at Crat.java you see that I have used it multiple times. But this class is not usable to transfer binary data (image) because of the InputStreamReader and PrintWriter which are only usable for all kinds of unicode text. Hence I created a new class (not on my website yet) that inherits from Connect:

It might use Connect's methods so it inherits from it.
Upon compiling Crat.java with this class added this error occurs:

Crat.java:140: Connect(int) in Connect cannot be applied to ()
public DataConnect(int port) {

Although I have been coding Java for a few years I never really had the need to use inheritance. Anybody knows what I'm doing wrong? I know I can simply add DataConnect's functionnality to Connect and it is solved but I would like to do it this way.

The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content - me

The constructor in Connect is not being explicitly called by DataConnect, so it is being called by default (and no parameters are being passed to it. Connect's constructor though requires an integer (port) argument. To fix it add a line to the DataConnect constructor to properly call the Connect constructor.:
Change

public DataConnect(int port) {
PORTNUM = port;
}

to

Code:

public DataConnect(int port) {
super(port);
PORTNUM = port;
}

\"When you say best friends, it means friends forever\" Brand New
\"Best friends means I pulled the trigger
Best friends means you get what you deserve\" Taking Back Sunday
Visit alastairgrant.ca