[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fdo-internals
Subject:    Re: [fdo-internals] Why is FdoISQLDataReader not derived
From:       Mateusz Loskot <mateusz () loskot ! net>
Date:       2008-08-23 5:55:29
Message-ID: 48AFA651.1020403 () loskot ! net
[Download RAW message or body]

Baumann, Konstantin wrote:
> Hi!
>  
> Is there a reason, why FdoISQLDataReader is not derived from FdoIReader,
> but directly from FdoIDisposable?

Konstantin,

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
_______________________________________________
fdo-internals mailing list
fdo-internals@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-internals
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic