Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design issues
Message
De
07/08/2010 00:58:06
 
 
À
06/08/2010 14:12:53
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01475236
Message ID:
01475595
Vues:
30
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform