Re: Redeclaring overrides
Re: Redeclaring overrides
- Subject: Re: Redeclaring overrides
- From: Ondra Cada <email@hidden>
- Date: Sun, 19 Aug 2001 17:35:47 +0200
John,
>
>>>>> John C. Randolph (JCR) wrote at Sun, 19 Aug 2001 02:27:34 -0700:
JCR> I usually declare overrides in the header, just because it helps anyone
JCR> reading my code to quickly see what I've changed from the superclass.
Well, there's also a different approach (which I happen to admire) that
nobody who wants to use or subclass my code has right to know which exactly
I've changed or not outside of documentation's scope.
You know, it's called "ecnapsulation". The thing is that I might want to
override some other methods in future without changing the API (just, say,
fixing some bugs). It is quite possible that my way of doing that would not
change the behaviour of those reimplemented methods, but the behaviour of
others!
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc