at4dx icon indicating copy to clipboard operation
at4dx copied to clipboard

Extensible Selector

Open stohn777 opened this issue 1 year ago • 1 comments

Reference

  • #74

Use Case

In order to properly extend a class, the extension by default should fully represent the super, before any extending changes, per Liskov's Substitution Principle - the L in SOLID.

The paramount method to override is selectInjection, however enabling engineers to override other canonical functionality as needed is desirable, especially since virtualizing the other methods is backwards compatible and does not change functionality -- only freeing engineers to make changes if needed.

Proposed Solution

Virtualize all public or protected methods, enabling engineers to override specific methods as needed for overriding purposes.

image

stohn777 avatar Mar 09 '23 20:03 stohn777