V
VM
I'm working on four classes where each method in the class (about 5 methods
per class: approx. 20 methods have to Open() and Close()) has to execute the
Open and Close processes. Should I create one class that includes only these
two methods and inherit all four classes from this main class? Or is this
not worth the additional trouble?
Also, is the relationship between a base class and an inherited class the
same as a parent-child class (ie. are they the same thing?)?
Thanks.
per class: approx. 20 methods have to Open() and Close()) has to execute the
Open and Close processes. Should I create one class that includes only these
two methods and inherit all four classes from this main class? Or is this
not worth the additional trouble?
Also, is the relationship between a base class and an inherited class the
same as a parent-child class (ie. are they the same thing?)?
Thanks.