Question: 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

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

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!