in reply to Re^2: Inherit only few methods from a parent class
in thread Inherit only few methods from a parent class
If the "risky" methods are used in the parent class, the inheriting child class may die unexpectedlyI agree with everything above, except the word unexpectedly. Yes, it will die. On purpose. Because the OP does not want those methods be callable. And if the Parent class calls those subs as methods, it's calling them on objects of type Child. Which the OP doesn't want. Hence death.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Inherit only few methods from a parent class
by afoken (Chancellor) on Jul 14, 2009 at 21:48 UTC |