public void RunExercise() { TelevisionHandler tvh = new TelevisionHandler(); Television tv1; tv1 = tvh.CreateATV(); tv1 = tvh.CreateATVFromUserInput(); }
public void RunExercise() { TelevisionHandler tvh = new TelevisionHandler(); Television tv = new Television("Sony", 2000.0m, 50); Console.WriteLine("Printing using the Print method: "); tvh.PrintMyTV(tv); Console.WriteLine("Printing using getters: "); tvh.PrintMyTVUsingGetters(tv); }
public void RunExercise() { TelevisionHandler tvh = new TelevisionHandler(); Television firstTV = new Television("Samsung", 2.0m, 10.5); Television secondTV = new Television("Westinghouse", 10.5m, 42); //firstTV = tvh.CreateATV(); //secondTV = tvh.CreateATVFromUserInput(); Television moreExpensiveTV; moreExpensiveTV = tvh.PickMoreExpensiveTV(firstTV, secondTV); firstTV.Print(); secondTV.Print(); Console.WriteLine("The more expensive TV is: "); tvh.PrintMyTV(moreExpensiveTV); }
public void RunExercise() { TelevisionHandler th = new TelevisionHandler(); th.PrintArrayOfPossiblyNullTVs(); }