Advertisement
techno-

main

Oct 25th, 2022
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. package e1;
  2.  
  3. public class main {
  4.     public static void main(String[] args) {
  5.         Especialista esp = new Especialista("Manolo","Pérez","99999999A",666666666,"norcoreano", 40,false);
  6.         System.out.println(esp.getNombre());
  7.         System.out.println(esp.getApellido());
  8.         System.out.println(esp.getDNI());
  9.         System.out.println(esp.getTelf());
  10.         System.out.println(esp.getNacionalidad());
  11.         System.out.println(esp.isPeligro());
  12.  
  13.         Humano humano2 = new Humano("Fulgencio","García","11111111B",666666669,"mongol",98);
  14.  
  15.         Pelicula p1 = new Pelicula("\nMinions",1500000.0f);
  16.         System.out.println(p1.getTitulo());
  17.         p1.insertarHumano(esp);
  18.         p1.insertarHumano(humano2);
  19.  
  20.         p1.printSalaries();
  21.  
  22.  
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement