Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1.  
  2. package trabajo.estructuras;
  3. import java.util.Scanner;
  4.  
  5. public class CreadorDeObjetos extends Carro{
  6.     Scanner entrada = new Scanner(System.in);
  7.     public CreadorDeObjetos()
  8.     {
  9.        
  10.     }
  11.     public void mostrarMenu()
  12.     {
  13.         int Opcion;
  14.         do {
  15.         System.out.println("1. Crear Carro");
  16.         System.out.println("2 Crear Moto.");
  17.         System.out.println("3.");
  18.         System.out.println("4. Salir");
  19.         System.out.println("Seleccione una opcion: ");
  20.         Opcion = entrada.nextInt();
  21.        
  22.         switch (Opcion)
  23.         {
  24.             case 1:
  25.                 crearCarro();
  26.                 break;
  27.             case 2:
  28.                 crearMoto();
  29.                 break;
  30.             case 3:
  31.                 break;
  32.             case 4:
  33.                 break;
  34.         }
  35.         } while (Opcion != 4);
  36.        
  37.     }
  38.     public void crearCarro()
  39.     {
  40.        
  41.     }
  42.     public void crearMoto()
  43.     {
  44.        
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement