/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Examen;

import java.util.ArrayList;

/**
 *
 * @author felix
 */
public class prueba {
    static public void main(String args[]) {
        ArrayList <Figura> F = new ArrayList();
        
        F.add(new Circulo(3));
        F.add(new Esfera(2));
        F.add(new Esfera(-1));
        
        for(Figura b: F) {
            System.out.println("Area      = "+ b.Area());
            System.out.println("Volumen   = " + b.Volumen());
            System.out.println("perimetro = " + b.perimetro());
            System.out.println("");
        }
    }
}
