19 lines
465 B
C#
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();
|
|
} |