public class Sobre {
void escribe(int n) {
System.out.print("METODO DE LA CLASE, EL ARGUMENTO ENTERO ES: ");
System.out.println(n);
}
void escribe(String a) {
System.out.print("METODO DE LA CLASE, EL ARGUMENTO CADENA(STRING) ES: ");
System.out.println(a);
}
void escribe(String a, int n) {
System.out.print("METODO DE LA CLASE, LOS 2 ARGUMENTOS (STRING/ENTERO) SON: ");
System.out.println(a+","+n);
}
}
public class PruebaSobre {
public static void main(String[] args) {
Sobre objeto1=new Sobre();
objeto1.escribe(5);
objeto1.escribe("POO");
objeto1.escribe("POO", 6);
}
}