Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

What does it mean for four events to be exhaustive?

Answered: 1 week ago

Question

Discuss the history of human resource management (HRM).

Answered: 1 week ago