Menu

Question 1 Type Information Given Following Uml Class Diagram Outline Type Information Cla Q43796821

UML java,polymorphism, please explain in detail

Question 1: Type information Given the following UML class diagram, outline what type information each class has associated w

• What types is Hammer associated with? • What types is Flat Head associated with? • What type could we use to encorporate al

Question 1: Type information Given the following UML class diagram, outline what type information each class has associated with it. When inheriting from any class or interface, each type gets the super type information. Tool +brand: String +use(part: Part): void Hammer Screwdriver +orientation: double +use (part: Part): void +setOrientation(angle: double): void +turn(degrees: double): double +use (part: Part): void +hit(part:Part, force:double): void Phillips Head FlatHead +turn(degrees:double): double +turn(degrees: double): double Figure 1: UML Class Diagram Of Tools • What types is Hammer associated with? • What types is Flat Head associated with? • What type could we use to encorporate all instances of the types in the diagram? Would we be able to have access to specific instance methods? • What types are considered to be abstract classes in the diagram? • Why is use and turn listed as abstract methods? • Why is hit and setOrientation not abstract methods? • Why doesn’t Phillips Head need to implement use? Show transcribed image text Question 1: Type information Given the following UML class diagram, outline what type information each class has associated with it. When inheriting from any class or interface, each type gets the super type information. Tool +brand: String +use(part: Part): void Hammer Screwdriver +orientation: double +use (part: Part): void +setOrientation(angle: double): void +turn(degrees: double): double +use (part: Part): void +hit(part:Part, force:double): void Phillips Head FlatHead +turn(degrees:double): double +turn(degrees: double): double Figure 1: UML Class Diagram Of Tools
• What types is Hammer associated with? • What types is Flat Head associated with? • What type could we use to encorporate all instances of the types in the diagram? Would we be able to have access to specific instance methods? • What types are considered to be abstract classes in the diagram? • Why is use and turn listed as abstract methods? • Why is hit and setOrientation not abstract methods? • Why doesn’t Phillips Head need to implement use?

Expert Answer


Answer to Question 1: Type information Given the following UML class diagram, outline what type information each class has associa…

OR