Sorry, I thought it was Harish added those Exceptions; didn't read the post properly.Junilu Lacar wrote:. . . The reason I added those exceptions was to make it more obvious to an implementer what they must do. . . .
Harish Shivaraj wrote:I think the Dave sample code clearly explain the enforcement rule.
Constructors must not invoke overridable methods, directly or indirectly. If you violate this rule, program failure will result.
One more time, that's a dangerous design. Therefore, NO, it's not good.Harish Shivaraj wrote:Is that a good design?
Harish Shivaraj wrote:If I take the example ... and modify slightly to
Is that a good design?
Harish Shivaraj wrote:Also why dont I have an option to edit my posts after being posted?