Question: 1. (Use Java or C#) Create an interface iArea. This shape has the method double getArea(). Use this interface in class Rectangle, Circle, Triangle. Implement

1. (Use Java or C#) Create an interface iArea. This shape has the method double getArea().

Use this interface in class Rectangle, Circle, Triangle. Implement getArea() to return area of each of those shapes. Make sure you add the required coordinates and other needed methods. Also override the toString (if using java) so it prints [Type of Object="", Name="", Area=, Coordinates=[ ]) with the proper information inside.

Create a main that test those classes

2.

(Use Java or C#)

Create a class Person. Describe basic properties of a person and methods. For example, color of eyes, name, height, age, ... person walks, runs, ..

Create a Student that inherits Person. The student has PantherID, major, GPA.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!