ISEbd-21_Sharonov_I_A_Proje.../ProjectAirline/Entities/Plane.cs
2024-10-30 11:13:10 +04:00

27 lines
536 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectAirline.Entities;
public class Plane
{
public int Id { get; private set; }
public string Name { get; private set; } = string.Empty;
public int Capacity { get; private set; }
public static Plane CreatePlane(int id, string name, int capacity)
{
return new Plane
{
Id = id,
Name = name,
Capacity = capacity
};
}
}