I have class object
ServerUser be considered as shared part and it has two sub-class
SshUser only provide support for SSH package and
FtpUser for FTP package only.
So should I place the sub-classes (
SshUser) into the same package with
ServerUser or different package accoring to functions? Any rules?
From my view, I think should place the
ssh module and
ftp module due to the subclasses isn't be shared, but it is really hard to navigate. Place in one package is easier to navigate and keep code simplier?
So which is better? Any regular rules?