GitHub repository: Andrea-S-Code/Inheritance-and-Polymorphism
Primary language: C#
Created: 2021-03-07T06:59:36Z
Description: As of now the Shape and Triangle classes are, for the most part, written. (In the InheritanceShapes program). Your assignment is to create the other classes that will inherit from Shape shown in the image below. Additionally, these things will be required:  1. Take a few sentences to give an example of why you would use Inheritance. Do the same for polymorphism. You can put these answers in the .cs file as comments. - 5 points each.  2. You will use polymorphism to create a CalculateArea method for all of the "Triangle", "Rectangle", and "Circle" classes. This method must be inherited from the Shape class.  You might need to add additional attributes to one or more of the shape subclasses.-5 points each  3. Use polymorphism to create two CalculateArea methods for the triangle class. One method taking in base and height for the parameters and another taking in all three sides. -12.5 points  4. You will add a DisplayAngles method to the triangle class. This will print all the angles of the triangle to the screen. You will need Angles attributes. -7.5 points  5. Make sure all classes have constructors. -5 points