关于[Composition vs Inheritance in C#]的摘要:
Composition and Inheritance are programming techniques to establish relationships between different classes. When working with an object-oriented language like C#, it is natural that we come across classes and objects. These classes, more than often, need to interact with each other if we are creating any meaningful application. Both composition and inheritance are tools to implement these interactions.
原文地址: https://code-maze.com/csharp-composition-vs-inheritance/