O
oziris
hello !
- Why doing that is incorrect ?
--- code ---
ServerSocket serverSocket = new ServerSocket(11000);
MySocket socket = serverSocket.accept();
--- /code ---
where MySocket is a subclass of java.net.Socket.
- Is there a mean to achieve this without using an encapsulation like
MySocket mySocket = new MySocket(java.net.Socket socket) ?
Thanks.
-o--
- Why doing that is incorrect ?
--- code ---
ServerSocket serverSocket = new ServerSocket(11000);
MySocket socket = serverSocket.accept();
--- /code ---
where MySocket is a subclass of java.net.Socket.
- Is there a mean to achieve this without using an encapsulation like
MySocket mySocket = new MySocket(java.net.Socket socket) ?
Thanks.
-o--