[fdo-internals] Why is FdoISQLDataReader not derived
mateusz at loskot.net
Sat Aug 23 01:55:29 EDT 2008
Baumann, Konstantin wrote:
> Is there a reason, why FdoISQLDataReader is not derived from FdoIReader,
> but directly from FdoIDisposable?
Good question, but I don't know the answer.
Considering definition of FdoIReader and FdoISQLDataReader, the latter
should be a subtype of the former:
- public interface of both classes is the same
- both are abstract classes
One of potential benefits of such interitance, would be
substitutability in terms of Liskov Substitution Principle (LSP).
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the fdo-internals