Open hakuliu opened 7 years ago
Usually, when you have something like this, you have an something like
AbstractClassA
ChildClassB extends AbstractClassA ChildClassC extends AbstractClassA
This way you can use common code such as better share common code and calculation that's required for both and define behavior in a better way.
Usually, when you have something like this, you have an something like
AbstractClassA
ChildClassB extends AbstractClassA ChildClassC extends AbstractClassA
This way you can use common code such as better share common code and calculation that's required for both and define behavior in a better way.