Free mag vol1 | Page 134

CHAPTER 2  BUILDING C# APPLICATIONS To complete this example, update the generated SportsCar class with a public method named GetPetName(), authored as follows: public class SportsCar : Car { public string GetPetName() { petName = "Fred"; return petName; } } You will make use of these (and other) visual tools of Visual Studio over the course of this book. However, you should now feel a bit more comfortable regarding the basics of the IDE.  Note The concept of inheritance will be fully examined in Chapter 6. The Integrated .NET Fra