public string desarrollador;
public string GetNombre(){ return this.nombre;}
public string GetCategoria(){ return this.categoria;}
public float GetPrecio(){ return this.precio;}
public string GetDesarrollador(){return this.desarrollador;}
public string GetDestacada()
public void SetNombre(string NewNombre){this.nombre=NewNombre;}
public void SetCategoria (string NewCategoria){this.categoria=NewCategoria;}
public void SetPrecio (float NewPrecio){this.precio=NewPrecio;}
public void SetDesarrollador (string NewDesarrollador){this.desarrollador=NewDesarrollador;}
public void SetDestacada(bool NewDestacada){this.destacada=NewDestacada;}
public void SetNewApp(string NNombre, string NCategoria, float NPrecio, string NDesarrollador, bool NDestacada){
this.categoria=NCategoria;
this.desarrollador=NDesarrollador;
this.destacada=NDestacada;
public void MostrarDatos()
Console.WriteLine("Nombre: " + this.nombre);
Console.WriteLine("Categoria: " + this.categoria);
Console.WriteLine("Precio: $" + this.precio + " USD");
Console.WriteLine("Desarrollador: " + this.desarrollador);
Console.WriteLine("Destacada: " + this.GetDestacada());
public bool multijugador;
public string GetMultijugador()
public void SetIAP(bool newIAP) { this.IAP = newIAP; }
public void SetMultijugador(bool newMulti) { this.multijugador = newMulti; }
public void SetNewJuego (string newNombre, string newCategoria, float newPrecio, string newDev, bool newDestacada, bool newIAP, bool newMulti )
this.categoria = newCategoria;
this.desarrollador = newDev;
this.multijugador = newMulti;
this.destacada = newDestacada;
public void MostrarDatoJuegos()
Console.WriteLine("Nombre: " + this.nombre);
Console.WriteLine("Categoria: " + this.categoria);
Console.WriteLine("Precio: $" + this.precio + " USD");
Console.WriteLine("Desarrollador: " + this.desarrollador);
Console.WriteLine("Destacada: " + this.GetDestacada());
Console.WriteLine("Contiene IAP: " + this.GetIAP());
Console.WriteLine("Multijugador: " + this.GetMultijugador());
public static App[] app = new App[3];
public static Juego[] juego = new Juego[3];
public static void Main()
for (int i = 0 ; i < app.Length; i++)
app[0].SetNewApp("King of thives", "juego", 0f, "Zeptolab", true);
app[1].SetNewApp("Google Maps", "utilidad", 0f, "Google Inc", true);
app[2].SetNewApp("Pedometer HD", "salud", 0.99f,"iTech Developers", false);
for (int i = 0 ; i < juego.Length; i++)
juego[0].SetNewJuego("King of thives", "juego", 0f, "Zeptolab", true, true, false);
Console.WriteLine("---Bienvenido---");
Console.WriteLine("---Menú---");
Console.WriteLine("1. - Ver todas aplicaciones");
Console.WriteLine("2. - Ver aplicaciones por categoría");
Console.WriteLine("3. - Ver aplicaciones destacadas");
Console.WriteLine("4. - Agregar nueva aplicación ");
Console.WriteLine("5. - Modificar destacados");
Console.WriteLine("0. Salir");
int option0 = Int32.Parse(Console.ReadLine());
for (int i = 0 ; i < app.Length; i++)
Console.WriteLine("Seleccione la categoria");
Console.WriteLine("1. -Utilidad");
Console.WriteLine("2. -Salud");
Console.WriteLine("3. -Juegos");
int cat = Int32.Parse(Console.ReadLine());
string catg = "utilidad";
public static void ShowPorCategoria(string catg)
for (int i = 0 ; i < app.Length; i++)
if (app[i].GetCategoria() == catg)
Console.WriteLine("Nombre: "+app[i].GetNombre());
Console.WriteLine("Categoria: "+app[i].GetCategoria());
Console.WriteLine("Precio: $"+app[i].GetPrecio()+" USD");
Console.WriteLine("Desarrollador: "+app[i].GetDesarrollador());
Console.WriteLine("Destacada: " +app[i].GetDestacada());