27 lines
536 B
C#
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
|
|||
|
};
|
|||
|
}
|
|||
|
}
|