Skip to Content
Microsoft® Visual C#® 2005 Step by Step
book

Microsoft® Visual C#® 2005 Step by Step

by John Sharp
October 2005
Beginner content levelBeginner
592 pages
15h 2m
English
Microsoft Press
Content preview from Microsoft® Visual C#® 2005 Step by Step

Chapter 12. Working with Inheritance

After completing this chapter, you will be able to:

  • Create a derived class that inherits features from a base class.

  • Control method hiding and overriding by using the new, virtual, and override keywords.

  • Limit accessibility within an inheritance hierarchy by using the protected keyword.

  • Capture common implementation details in an abstract class.

  • Declare that a class cannot be inherited by using the sealed keyword.

  • Create an interface identifying the names of methods.

  • Implement interfaces in a struct or class by writing the bodies of the methods.

Inheritance is a key concept in the world of object-orientation. You can use it as a tool to avoid repetition when defining different classes that have a number of features ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Visual C#® 2010 Step by Step

Microsoft® Visual C#® 2010 Step by Step

John Sharp
Professional C# 2005

Professional C# 2005

Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones

Publisher Resources

ISBN: 0735621292Supplemental ContentErrata