Does a socket instantiated in a parent class belong to its child class?
I’m making a messaging service in java where I’m using sockets and object input/output streams. I wanted to make this as object oriented as I can (to learn OOP) so for the client side I’m making an abstract client class with three subclasses (owner, administrator and user). The main idea is to put the shared code in the three subclasses in the parent class instead to minimize repeated code.