Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package trabajo.estructuras;
- import java.util.Scanner;
- public class CreadorDeObjetos extends Carro{
- Scanner entrada = new Scanner(System.in);
- public CreadorDeObjetos()
- {
- }
- public void mostrarMenu()
- {
- int Opcion;
- do {
- System.out.println("1. Crear Carro");
- System.out.println("2 Crear Moto.");
- System.out.println("3.");
- System.out.println("4. Salir");
- System.out.println("Seleccione una opcion: ");
- Opcion = entrada.nextInt();
- switch (Opcion)
- {
- case 1:
- crearCarro();
- break;
- case 2:
- crearMoto();
- break;
- case 3:
- break;
- case 4:
- break;
- }
- } while (Opcion != 4);
- }
- public void crearCarro()
- {
- }
- public void crearMoto()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement