public Bucket(int capacity, int currentAmount)
this.capacity = capacity;
this.currentAmount = currentAmount;
static void Main(string[] args)
Bucket b1 = new Bucket(10, 5);
Console.WriteLine("b1: " + b1.ToString());
static void Main(string[] args)
Console.WriteLine("Please insert a capacity");
int capacity = int.Parse(Console.ReadLine());
capacity = int.Parse(Console.ReadLine());
Console.WriteLine("Please insert a fillment");
int fillment = int.Parse(Console.ReadLine());
while (fillment < 0 || fillment > capacity)
fillment = int.Parse(Console.ReadLine());
Bucket b1 = new Bucket(capacity, fillment);
Console.WriteLine("b1: " + b1.ToString());