Reputation
816
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 7
Newest
 Yearling
Impact
~43k people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Feb
15
comment designing classes with similar goal but widely different decisional core
@Steven Jeuris:Making such functions pure virtual would require changing all PBase subclasses, which I'd want to avoid. Sure, for 4 concrete classes, who cares, but for a more complex scenario with e.g. a few hundred subclasses, avoiding changes to all classes due to the requirements of one new subclass would be preferable. The "Context" mechanism mentioned below and the method I describe allow changing requirements with minimum modification of existing code.
Feb
15
awarded  Teacher
Feb
15
answered designing classes with similar goal but widely different decisional core