Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to create a UML for this program and not sure how to go about making one: it must be similar to the way

I need to create a UML for this program and not sure how to go about making one:

image text in transcribed

it must be similar to the way this uml diagram is set up:

image text in transcribed

Define 2 classes. One class will be a superhero (Superhero.java), the other class will be a companion (a sidekick or another superhero) to your superhero. Each class has to have at least 2 states and 4 behaviors. Create a program (Objects Program.java) that can create your 2 characters in a short snippet of action, informing the user what the states are, and accessing each's behavior; display that behavior to the screen. Your program has to state that the object has been created, its behavior and its states. Circle -radius: double -numberOfObjects: int +Circle +Circle(radius: double) +getRadius(): double +setRadius (radius: double): void +getNumberOfObjects(): int +getArea(): double

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

Students also viewed these Databases questions

Question

=+Are the contracts enforceable?

Answered: 1 week ago