This week in my CS class I'm learning about inheritance. We are asked draw 3 UML diagrams (one base, and 2 sub-classes).
Let's say the base class is for an Employee object.
If it has a func +calcPay() would I also have to write this function into the UML for the two sub-classes in their respective functions lists? Or is it not needed because it is inherited?
My gut says I do, but the instructions I was given state that only "unique" things are placed into the UMLs of sub-classes. I feel like they are unique because they will calculate differently based on the type of employee even though the functions have the same name.