Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED PART 3 & PART 4. JAVA CODE There was a typo in the diagram of Part 4. ( class Circle, Rectangle, and Square are

NEED PART 3 & PART 4. JAVA CODE

There was a typo in the diagram of Part 4. ( class Circle, Rectangle, and Square are normal classes, and class shape is an abstract class)

getArea() and getCircumference() are abstract methods in abstract class shape, and you need to implement them in class Circle, Rectangle, and Square.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Project 2-part 1 1. In the following picture, you can see the diagram of class circle. Design class Circle with the following information: Circle tvarName: type-default-value denotes private access -radius: double-1.0 -color: String "green" denotes public access label: String al +Circle0 Overloaded constructors +Circle(r: double) +Circle double, c string, l:strin +getRadius 0: double +methodName ame: +getArea0: double type, return Type +getCircumference 0: double +getLabel0: string +setLabel(l: string) void Class Circle contains: three instance variables radius: it is a private instance variable ofthe type double, with default value of 1.0. color it is a private instance variable of the type String), with default value of"green". label: it is a public instance variable of the type String), with default value of"groupl

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

LO5 Illustrate the steps in developing a base pay system.

Answered: 1 week ago