3 ms·
What you describe there is use of interfaces and properties. These things are much easier to reason about and to compose than classes with inheritance. For ex
by thesz 4y ago
What you describe there is use of interfaces and properties.
These things are much easier to reason about and to compose than classes with inheritance.
For example, it is easy to solve Expression Problem [1] with interfaces and properties and it is hard to solve it with only classes and inheritance.
[1] https://en.wikipedia.org/wiki/Expression_problem https://en.wikipedia.org/wiki/Expression_problem
- shanebellone 4y ago"These things are much easier to reason about and to compose than classes with inheritance." Fair. Personally, that looks like an argument for objects rather than against. Do these concepts oppose or complement OOP? Is inheritance somehow a hidden requirement?