ChrisPlatt
Programmer
I'm going round in circles trying to get my head around the usage of Inheritance within a system I am trying to design. I would REALLY appreciate any experienced advice on the following scenario:
I have an abstract base class named CustomerServiceType which has a single method named IsAvailable. I have two classes deriving from the base which will implement the IsAvailable method and return a true/false. The issue I have is that each of the subclasses require a parameter of a different type in order to evaluate the IsAvailble method.
The only was I can think of to deal with this situation is to pass in the parameter via the constructor? - Is this bad practice or bad design?
Please help!....
I have an abstract base class named CustomerServiceType which has a single method named IsAvailable. I have two classes deriving from the base which will implement the IsAvailable method and return a true/false. The issue I have is that each of the subclasses require a parameter of a different type in order to evaluate the IsAvailble method.
The only was I can think of to deal with this situation is to pass in the parameter via the constructor? - Is this bad practice or bad design?
Please help!....