my apologies if this question is complex/confusing. I am in an intro
java course and I am having some difficulties with one of my assignments!
This assignment is to create specifications for some shapes (rectangles and triangles), but it must be implemeneted as such:
All shapes must implement a calculated interface which calculates their area/perimeter. A shapemanger class stores the calculated shapes in an array capable of storing up to 10 objects...
THE CODE:
Currently my output is:
The Area of the rectangle = 0 The Perimeter of the rectangle =0
I am really stuck on what I am doing wrong, and why the output isnt calculated properly. Any assistance on this is really appreciated, thank you very much for your help and your patience!