Advertisement
Fhernd

Cuadrado.cs

Nov 14th, 2017
1,106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. public class Cuadrado : Figura
  2. {
  3.     private int lado;
  4.    
  5.     public Cuadrado (int lado, string idFigura) : base (idFigura)
  6.     {
  7.         this.lado = lado;
  8.     }
  9.    
  10.     public override double Area
  11.     {
  12.         get
  13.         {
  14.             return lado * lado;
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement