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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started