Skip to Content
C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition
book

C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition

by Mark J. Price
November 2021
Intermediate to advanced content levelIntermediate to advanced
826 pages
20h 10m
English
Packt Publishing
Content preview from C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition

06

Implementing Interfaces and Inheriting Classes

This chapter is about deriving new types from existing ones using object-oriented programming (OOP). You will learn about defining operators and local functions for performing simple actions and delegates and events for exchanging messages between types. You will implement interfaces for common functionality. You will learn about generics and the difference between reference and value types. You will create a derived class to inherit from a base class to reuse functionality, override an inherited type member, and use polymorphism. Finally, you will learn how to create extension methods and how to cast between classes in an inheritance hierarchy.

This chapter covers the following topics:

  • Setting ...
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

C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development - Fourth Edition

C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development - Fourth Edition

Mark J. Price

Publisher Resources

ISBN: 9781801077361Supplemental Content