Example #1
0
        static void Main(string[] args)
        {
            Caballo c1 = new Caballo();
            Humano  h1 = new Humano();
            Gorila  g1 = new Gorila();

            g1.trepar();
        }
Example #2
0
        static void Main(string[] args)
        {
            Caballo c1 = new Caballo("Babieca");
            Humano  h1 = new Humano("Marc");
            Gorila  g1 = new Gorila("Copito");

            c1.getNombre();
            h1.getNombre();
            g1.getNombre();
            g1.trepar();
        }