Exemplo n.º 1
0
        static void Main(string[] args)
        {
            //create prisoner
            Prisoner prisoner = new Prisoner { Man = "Johnny gangsta", Age = "He is 32 years old" };
            Jail jail = new Jail { Novice = "Just another pickpocketeer", Danger = "We get more murderer squirels everyday" };
            jail.AddPrisoner(prisoner);
            jail.AddPrisoner(prisoner);
            jail.AddPrisoner(prisoner);
            jail.AddPrisoner(prisoner);

            Console.WriteLine(jail.ToString());


            Console.WriteLine("Should have make this thing better");
            Console.ReadLine();





        }
Exemplo n.º 2
0
 public void AddPrisoner(Prisoner prisoner)
 {
     Prisoners.Add(prisoner);
 }