Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Section A.8. CHAPTER 10 SOLUTIONS - Pg. 969

Chapter 10 Solutions 969 static void Main(string[] args) { AddPassenger(new Compact()); AddPassenger(new SUV()); AddPassenger(new Pickup()); AddPassenger(new PassengerTrain()); } static void AddPassenger(IPassengerCarrier Vehicle) { Console.WriteLine(Vehicle.ToString()); } } } CHAPTER 10 SOLUTIONS Exercise 1 class MyClass { protected string myString;