Can we modify this other system?
-
I was asked to assess a system from another team to determine the feasibility of modifying it. After an hour, I had encountered:
public class MqTransport
extends ServerSocket
implements Runnable,
Serializable,
RSAPublicKey,
RSAPrivateKey { ... }
public class BaseDAO extends MqTransport { ... }
public class ServerOnClientSide extends BaseDAO { ... }
public class ServerOnServerSide extends XmlParser { ... }
public class ClientOnClientSide { ... }
public class ClientOnServerSide { ... }
Methinks perhaps not.
-
-
Using inheritance when you should use composition is TRWTF.