Skip to Main Content
Sams Teach Yourself C# 5.0 in 24 Hours
book

Sams Teach Yourself C# 5.0 in 24 Hours

by Scott J. Dorman
November 2012
Intermediate to advanced content levelIntermediate to advanced
544 pages
12h 3m
English
Sams
Content preview from Sams Teach Yourself C# 5.0 in 24 Hours

Hour 5. Inheritance, Interfaces, and Abstract Classes

In the last hour, you learned how classes in C# provide the language support required for object-oriented and component-oriented programming through encapsulation and abstraction. Although these aspects of object-oriented programming are important, they don’t provide a good mechanism for expressing a hierarchical relationship between specialized variations of a class.

Inheritance provides a natural way to express such relationships. Through inheritance, you can create a completely new class that inherits the characteristics and behaviors from its parents. Polymorphism, which ...

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

Sams Teach Yourself C#™ in 24 Hours

Sams Teach Yourself C#™ in 24 Hours

James Foxall, Wendy Haro-Chun

Publisher Resources

ISBN: 9780133256581Purchase book