-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvehiculo.cs
More file actions
30 lines (27 loc) · 866 Bytes
/
vehiculo.cs
File metadata and controls
30 lines (27 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AppCarpooling
{
//Clase Vehiculo
internal class Vehiculo
{
//Clase atributos
public string color;
public string marca;
public string modelo;
public string placa;
public uint nroPasajeros;
//Constructor
public Vehiculo()
{
color = Aplicacion.Preguntas("Escribe el color de tu carro", 1);
placa = Aplicacion.Preguntas("Escribe la placa de tu vehiculo", 1);
marca = Aplicacion.Preguntas("Escribe la marca de tu vehiculo", 1);
modelo = Aplicacion.Preguntas("Escribe el modelo de tu vehiculo", 1);
nroPasajeros = Aplicacion.Preguntas("¿Cuántos pasajeros puedes llevar?", 2);
}
}
}