Files
T2-start-2025/CS/CS2B shipping company/CS2B shipping company/Container/BaseContainer.cs
Rens Pastoor de4fd98cc7 CS2B start
2025-06-08 17:11:09 +02:00

19 lines
465 B
C#

namespace CS2B_shipping_company;
public abstract class BaseContainer
{
private static int idCount = 1000;
public int Id { get; }
public string Description { get; set; }
public string CountryOfOrigin { get; set; }
protected BaseContainer(string description, string countryOfOrigin)
{
Id = idCount++;
Description = description;
CountryOfOrigin = countryOfOrigin;
}
public abstract float Fee();
}