Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     Movie t12 = new Movie("Titanic 2012", "1");
     Movie HF2 = new Movie("Housefull 2 2010", "0");
     Movie chump= new Movie("Chimpanjee", "2");
     Movie shuarya = new Movie("Shaurya", "0");
     Rental titanicR = new Rental(t12, 2);
     Rental hf2R = new Rental(HF2, 3);
     Rental chimpanzeeR = new Rental(chump, 2);
     Customer anshul = new Customer("Anshul Pandey");
     anshul.AddRental(titanicR);
     anshul.AddRental(hf2R);
     anshul.AddRental(chimpanzeeR);
     anshul.PringStatement();
     Console.ReadLine();
 }
Ejemplo n.º 2
0
 public void AddRental(Rental rental )
 {
     Rentals.Add(rental);
 }