Skip to main content

Home/ OCG developers/ Group items tagged inheritance

Rss Feed Group items tagged

Steven van Dijk

Favor Composition Over Inheritance - 0 views

  •  
    "Making code reusable through public class inheritance (PCI) is so convenient and easy that to say it should be avoided may sound a bit heretical. After all, isn't this what OOP is about? And yet that's the position I hold."
Steven van Dijk

Abstractions, Patterns, and Interfaces - 0 views

  •  
    "Interfaces are wonderful for a language like C#. Interfaces give us everything we need to work with an object in a strongly-typed manner, but place the least number of constraints on the object implementing the interface. Interfaces make the C# compiler happy without forcing us to pay an inheritance tax for working with a class hierarchy. We'll define an interface that describes exactly how we want to fetch customers and how we want the customers packaged for us to consume."
1 - 2 of 2
Showing 20 items per page