Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class PruebaFigura
- {
- public static void Main ()
- {
- Figura[] figuras =
- {
- new Cuadrado (5, "Cuadrado #1"),
- new Circulo (3, "Círculo #1"),
- new Rectangulo (4, 5, "Rectángulo #1")
- };
- Console.WriteLine ("Colección de Figuras");
- foreach (Figura figura in figuras)
- {
- Console.WriteLine (figura);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement