Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design issues
Message
From
07/08/2010 00:58:06
 
 
General information
Forum:
ASP.NET
Category:
Class design
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01475236
Message ID:
01475595
Views:
29
>Going back to you original post and completing the derived class I assumed something like:
Public Class Parser
>    Public Function ParseForTable() As Boolean
>        Return ReplaceWithThisContent()
>    End Function
>    Public Overridable Function ReplaceWithThisContent() As Boolean
>        Return True
>    End Function
>End Class
>
>Public Class DerivedParser
>    Inherits Parser
>    Public Overrides Function ReplaceWithThisContent() As Boolean
>        Return False
>    End Function
>End Class
If that is a valid representation then why would this not work:
Public Class ViewPagePage
>    Public Function GetPage() As Boolean
>        ' Just instantiate the version of Parser that suits your requirements? e.g:
>        Dim loParser As DerivedParser = New DerivedParser()
>        'Etc
>        Return loParser.ParseForTable()
>    End Function
>End Class
But, where in the client class would be the code for the ReplaceWithThisContent() method?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform