add Programmyday form github
This commit is contained in:
19
zoo-besucher/Program.cs
Normal file
19
zoo-besucher/Program.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace zoo_besucher
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Group gruppe = new Group(20);
|
||||
Adult erwachsene = new Adult();
|
||||
Child kinder = new Child();
|
||||
Entrance eingang = new Entrance(3);
|
||||
|
||||
eingang.AddVisitor(erwachsene);
|
||||
eingang.AddVisitor(kinder);
|
||||
eingang.AddVisitor(gruppe);
|
||||
eingang.AddVisitor(gruppe);
|
||||
eingang.GetPrintInfo();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user