Fernando,
> I'm starting a new application that will handle web sites of 2
> different kinds: remote sites and local sites. Remote site will be
> accessed via http and will have a url, while local ones reside in the
> local computer's HD and haven't been uploaded yet. They will have a
> path, not a url and will be accesed as set of local files.
>
> How would you design the WebSite classes? Should I have a WebSite
> class for the remote ones and a subclass for the LocalWebSite? What
> happens with the url aspect that the local one doesn't need?
You could avoid that by having an abstract base class and putting the
URL only in remote subclass. However, you might be able to get away
with a file:///x:/somewhere/etc/etc/etc/something.youGetTheIdea type of
URL?? Please check the format.
Have a good one,
Bill
--
Wilhelm K. Schwab, Ph.D.
[hidden email]