Question: Please answer the 3 questions And write the uml Because i posted this question before and he didnt answer what I needed Lab 002: Chapter
Lab 002: Chapter 9: OBJECTS AND CLASSES (part 1) Objective: Design classes and draw UML class diagrams. Implement classes from the UML. Use classes to develop applications. Example - Circle class: Data field Constructors class Circle { /** The radius of this circle / double radius - 1; /** Construct a circle object- Circle() { } /** Construct a circle object Circle(double newRadius) { radius - newRadius; } /** Return the area of this circle */ double getArea() { return radius * radius * Math.PI; } * Return the perimeter of this circle */ double getPerimeter() { return 2 * radius * Math.PI: } /** Set new radius for this circle double setRadius (double newRadius) { radius - newRadius; } } Method 1 A class is a construct that defines objects of the same type
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
