SHOW:
|
|
- or go back to the newest paste.
1 | class Rectangle: Polygon | |
2 | { | |
3 | public Rectangle(double length, double width) | |
4 | { | |
5 | Length = length; | |
6 | Width = width; | |
7 | } | |
8 | - | public double GetArea() |
8 | + | public override double GetArea() |
9 | { | |
10 | return Width * Length; | |
11 | } | |
12 | } |