Given the code in this classes you are required to the following:
- Add the necessary code to show all Triangles and all Rectangles, base your code on the show all Ellipses code
}else if (menuOption == 8){ // List all Triangles
}else if (menuOption == 9){ // List all Rectangles
}
- Add two additional classes:
Equilateral
to represent an equilateral triangle andRhombus
to represent a rhombus. Make sure that you declare this classes with their correct base classes, also make sure that you send the correct parameters to their constructors.
Remember to follow good programming practices, and to do the code yourself. It's OK to discuss with classmates, but not to share code. Submit by pushing to GitHub before the deadline.