Question: Which is generally better, Inheritance or Composition? Why? Write a UML diagram illustrating inheritance and one illustrating composition. Use the following example At a military
Which is generally better, Inheritance or Composition? Why? Write a UML diagram illustrating inheritance and one illustrating composition. Use the following example At a military installation, there are three types of employees: Officers, Enlisted, and Civilian contractors. There are also three levels of security clearance: Secret, Top Secret, and Uncleared
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
