Question: 1 . Element of Class diagram 2 . Write a scenario that describes the relationships between the classes Company, Department, Office, Headquarter, and Employee. Consider
Element of Class diagram
Write a scenario that describes the relationships between the classes Company, Department, Office, Headquarter, and Employee. Consider how a company is structured and how employees are assigned to departments and offices.
Identify all the relationships between the classes.
Explain why inheritance is used between those classes and how it benefits the system design.
Describe the differences between the private, public, and protected attributes and methods.
Based on the diagram:
a Which attributes and methods are public?
b Which attributes and methods are private?
c Are there any protected elements? If not, explain when a protected attribute or method would be useful in an objectoriented system.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
