EJERCICIO
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package aves;
/**
*
* @author mini
*/
public class Aves {
/**
* @param args the command line arguments
*/
String Clase, Sexo;
public Aves(String clase, String sexo)
{
this.Clase=clase;
this.Sexo=sexo;
}
public void muestraAves()
{
System.out.println(Clase);
System.out.println(Sexo);
}
}
No hay comentarios:
Publicar un comentario