Question: 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.






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
To complete Project 2part 3 and part 4 youll need to define the classes according to the UML diagrams Heres a stepbystep guide with the Java code needed for these parts Part 3 Implement Classes with t... View full answer
Get step-by-step solutions from verified subject matter experts
