Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Design Patterns with C# and .NET Core

You're reading from   Hands-On Design Patterns with C# and .NET Core Write clean and maintainable code by using reusable solutions to common software design problems

Arrow left icon
Product type Paperback
Published in Jul 2019
Publisher Packt
ISBN-13 9781789133646
Length 410 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Jeffrey Chilberto Jeffrey Chilberto
Author Profile Icon Jeffrey Chilberto
Jeffrey Chilberto
Gaurav Aroraa Gaurav Aroraa
Author Profile Icon Gaurav Aroraa
Gaurav Aroraa
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1: Essentials of Design Patterns in C# and .NET Core FREE CHAPTER
2. Overview of OOP in .NET Core and C# 3. Modern Software Design Patterns and Principles 4. Section 2: Deep Dive into Utilities and Patterns in .NET Core
5. Implementing Design Patterns - Basics Part 1 6. Implementing Design Patterns - Basics Part 2 7. Implementing Design Patterns - .NET Core 8. Implementing Design Patterns for Web Applications - Part 1 9. Implementing Design Patterns for Web Applications - Part 2 10. Section 3: Functional Programming, Reactive Programming, and Coding for the Cloud
11. Concurrent Programming in .NET Core 12. Functional Programming Practices 13. Reactive Programming Patterns and Techniques 14. Advanced Database Design and Application Techniques 15. Coding for the Cloud 16. Miscellaneous Best Practices 17. Assessments 18. Other Books You May Enjoy

Inheritance

One of the most important concepts in OOP is inheritance. Inheritance between classes allows us to define an is-a-type-of relationship; for example, a car is a type of vehicle. The importance of this concept is that it allows for objects of the same type to share similar features. Let's say that we have a system for managing different products of an online bookstore. We might have one class for storing information about a physical book and a different one for storing information about a digital or online book. The features that are similar between the two, such as the name, publisher, and author, could be stored in another class. Both the physical and digital book classes could then inherit from the other class.

There are different terms to describe classes in inheritance: a child or derived class inherits from another class while the class being inherited from...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime