Skip to Content
Design Patterns in .NET: Reusable Approaches in C# and F# for Object-Oriented Software Design
book

Design Patterns in .NET: Reusable Approaches in C# and F# for Object-Oriented Software Design

by Dmitri Nesteruk
May 2019
Intermediate to advanced content levelIntermediate to advanced
356 pages
5h 18m
English
Apress
Content preview from Design Patterns in .NET: Reusable Approaches in C# and F# for Object-Oriented Software Design

Part IIIStructural Patterns

Structural Patterns

As the name suggests, structural patterns are all about setting up the structure of your application so as to improve SOLID conformance as well as general usability and maintainability of your code.

When it comes to determining the structure of an object, we can apply three fairly well-known methods:
  • Inheritance: an object automagically acquires all members of the base class or classes. To allow instantiation, the object must implement every abstract member from its parent; if it does not, it is abstract and cannot be created (but you can inherit from it).

  • Composition: This generally implies that the child cannot exist without the parent. This is typically implemented with nested classes. For example, ...

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

Design Patterns in .NET 6: Reusable Approaches in C# and F# for Object-Oriented Software Design

Design Patterns in .NET 6: Reusable Approaches in C# and F# for Object-Oriented Software Design

Dmitri Nesteruk
Hands-On Design Patterns with C# and .NET Core

Hands-On Design Patterns with C# and .NET Core

Gaurav Aroraa, Jeffrey Chilberto

Publisher Resources

ISBN: 9781484243664Purchase LinkPublisher Website