Advertisement
Fhernd

Circulo.cs

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