Declare a method called getSideCount in the Shape interface that returns the number of sides that the

Question:

Declare a method called getSideCount in the Shape interface that returns the number of sides that the shape has. Implement the method in all shape classes. A circle is defined to have 0 sides.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Building Java Programs A Back To Basics Approach

ISBN: 9780135471944

5th Edition

Authors: Stuart Reges, Marty Stepp

Question Posted: