Title: DiconnectListener Problem !!
Since you did'nt declare an extension of class for DisconnectDemo,
the super class is Object. So do not insert your super(source).
 
 
----- Original Message -----
Sent: Saturday, February 26, 2000 9:40 PM
Subject: DiconnectListener Problem !!

class DisconnectDemo implements DisconnectListener {
        public DisconnectDemo(Object source){
                super(source);
        }
                       
        public void disconnectOccurred(DisconnectEvent de) {
                System.out.println("The reason for disconnecting you : " + de.getReason());
        }
}

On compiling this code gives error that wrong number of arguements in the constructor.
Can anybody give me some insight into this.

Regards

Mahendra

Reply via email to