Advertisement
tutzy

Untitled

Jun 3rd, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace _01.Shapes
  7. {
  8. public abstract class BasicShape : IShape
  9. {
  10. public double Width { get; set; }
  11. public double Height { get; set; }
  12.  
  13. public abstract double CalculateArea();
  14.  
  15. public abstract double CalculatePerimeter();
  16.  
  17. protected BasicShape(double Width, double Height)
  18. {
  19. CalculateArea();
  20. return;
  21. CalculatePerimeter();
  22. return;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement