I am designing a system trying to use object oriented design. I have a question about inheritance. I work for a kosher certifying agency. The agency has employees that work in the office or inspect factories. The same employee can do both. There are also employees who are called administrators who can also be inspectors. I thought I would a class called employee and then two classes that would inherit from employee called inspector and administrator.Is there any problem from a OO design standpoint if the same employee can be both and also be an employee at the same time?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.