Task 2: Geometricobject <«interface>> +getPerimeter() : double +getArea():double Circle #radius:double - 1.0 +Circle(radius: double) +getPerimeter():double +getArea( ):double Resizable <«interface> +resize(percent: int) ResizableCircle +Resizablecircle(radius:double) +resize(percent :int) Implement the interfaces and the classes. Test the methods

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question

write this in java code details given in the picture

Task 2:
Geometricobject
<«interface>>
+getPerimeter():double
+getArea():double
Circle
#radius:double = 1.0
%3!
+Circle(radius: double)
+getPerimeter():double
+getArea():double
Resizable
<«interface>>
+resize(percent: int)
ResizableCircle
+Resizablecircle(radius:double)
+resize(percent:int)
• Implement the interfaces and the classes.
• Test the methods
Transcribed Image Text:Task 2: Geometricobject <«interface>> +getPerimeter():double +getArea():double Circle #radius:double = 1.0 %3! +Circle(radius: double) +getPerimeter():double +getArea():double Resizable <«interface>> +resize(percent: int) ResizableCircle +Resizablecircle(radius:double) +resize(percent:int) • Implement the interfaces and the classes. • Test the methods
Expert Solution
steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT