Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 with
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 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 useStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started