コード例 #1
0
        public void VerwijderSchip(Ship ship)
        {
            if (Ships.Contains(ship))
            {
                Ships.Remove(ship);
                ship.vloot = null;
            }

            else
            {
                Console.WriteLine($"Schip: {ship.Name} is niet in vloot: {this.Name}\n");
            }
        }