in reply to Re^6: Inheritance - calling parent constructor
in thread Inheritance - calling parent constructor

If there's a bug in the parent, fix the parent.
That assumes you control the parent.
  • Comment on Re^7: Inheritance - calling parent constructor

Replies are listed 'Best First'.
Re^8: Inheritance - calling parent constructor
by ikegami (Patriarch) on Dec 30, 2009 at 12:48 UTC

    I know, which is why I made an allowance for when the assumption is wrong. ("Don't use a workaround just in case you might need it." allows for using a workaround when needed.)

    You, on the other hand, assume that all base classes are buggy and permit no exception (because it would break encapsulation!?)