Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

What advice would you provide to Jennifer?

Answered: 1 week ago

Question

What are the issues of concern for each of the affected parties?

Answered: 1 week ago