Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

FACULTY OF ENGINEERING & INTOUMATION TECHNOLOGY DEPARTMENT OF Computer Science QUESTION NO.3: MANDATORY OPTIONALT BONUS (30 POINTS) 3) Implement the following UML Diagram in Java

image text in transcribed

FACULTY OF ENGINEERING & INTOUMATION TECHNOLOGY DEPARTMENT OF Computer Science QUESTION NO.3: MANDATORY OPTIONALT BONUS (30 POINTS) 3) Implement the following UML Diagram in Java and Create a TestClass which contains the main method that do the following: Create 3 Objects of each class and set their data members. Using class shape to print the number of created objects of the classes. Print the area of three different objects, Add any missing code thut you see it is necessary to make your program run correctly . Shape - area: Integer counter static integer #setAresint area) void getArea: double Circle -radius: double tsetRadius(double radius):void getRadius: double Triangle sidel: Integer - side2: integer - side 3: integer tsetSidelint side void HotSidelo: int +setSide2(int side2) void +getSide20:int tsetSide 3 (int side):void tgetSide30: int

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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