Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Rectangle
- {
- public static string ShapeName
- {
- get { return "Rectangle"; }
- }
- public Rectangle(double length, double width)
- {
- Length = length;
- Width = width;
- }
- public double GetArea()
- {
- return length * width;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement