[fdo-internals] Why is FdoISQLDataReader not derived from FdoIReader?

Mateusz Loskot mateusz at loskot.net
Sat Aug 23 01:55:29 EDT 2008

Baumann, Konstantin wrote:
> Hi!
> 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).

Best regards,
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

More information about the fdo-internals mailing list