Всем здраствуйте, делаю лабораторную работу по Windows Forms и не понимаю что пошло не так :(
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SDM_Lab5
{
internal class PasMove
{
public virtual int CountPas { get; set; }
public virtual double Speed { get; set; }
public string Name { get; set; }
public double CostFuel { get; set; }
public double Rashod { get; set; }
public double Time(double s)
{ return s / Speed; }
public virtual double CostTrip(double t)
{ return t * Rashod * CostFuel / CountPas; }
class Aeroplane
{
int countPas;
double speed;
public override int CountPas
{
get { return countPas; }
set { if (value <= 300) countPas = value; }
}
public override double Speed
{
get => speed;
set { if (value > 600 && value <= 900) speed = value; }
}
public Aeroplane(string Name, int CountPas, double Speed, double CostFuel, double Rashod)
{
Name = "Самолет";
CountPas = 280;
Speed = 800;
CostFuel = 37.2;
Rashod = 2600;
}
}
}
}