Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace planetum
- {
- public class Planeta
- {
- private string name;
- private double costoIda,costoVuelta,costoNoche;
- private bool itsHostile;
- private string descripcion;
- //constructor
- public Planeta(string name, double costoIda, double costoVuelta, double costoNoche, bool itsHostile, string descripcion)
- {
- this.Name = name;
- this.CostoIda = costoIda;
- this.CostoVuelta = costoVuelta;
- this.CostoNoche = costoNoche;
- this.ItsHostile = itsHostile;
- this.descripcion = descripcion;
- }
- //getters y setters
- public string Name { get => name; set => name = value; }
- public double CostoIda { get => costoIda; set => costoIda = value; }
- public double CostoVuelta { get => costoVuelta; set => costoVuelta = value; }
- public double CostoNoche { get => costoNoche; set => costoNoche = value; }
- public bool ItsHostile { get => itsHostile; set => itsHostile = value; }
- public string Descripcion { get => descripcion; set => descripcion = value; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment