Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace _01.Shapes
- {
- public abstract class BasicShape : IShape
- {
- public double Width { get; set; }
- public double Height { get; set; }
- public abstract double CalculateArea();
- public abstract double CalculatePerimeter();
- protected BasicShape(double Width, double Height)
- {
- CalculateArea();
- return;
- CalculatePerimeter();
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement