This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
ibz/software/1_sem/collections/collections/Program.cs

23 lines
636 B
C#

using System;
using System.Collections.Generic;
namespace collections
{
internal class Program
{
public static void Main(string[] args)
{
List<CD> cdList = new List<CD>();
cdList.Add(new CD("Amy McDonald", "This is the life"));
cdList.Add(new CD("Arch Enemy", "This is War"));
cdList.Add(new CD("Fleshgod Apocalypse", "Agony"));
foreach (var item in cdList)
{
Console.WriteLine(item.Interpret + " " + item.AlbumTitel);
}
cdList.Add(new CD("Fleshgod Apocalypse", "Agony"));
}
}
}