Craig,
In addition to Dominique's answer:
It sounds like what you want is a Template Method Pattern. (Dominique showed
a variation of a Template Method).
http://www.dofactory.com/Patterns/PatternTemplate.aspx
Another variation of the Template Method is:
Public MustInherit Class Generic
Public Sub Save()
BeforeSave()
' do the save
AfterSave()
End Sub
Protected MustOverride Sub BeforeSave()
Protected MustOverride Sub AfterSave()
End Class
Public Class Specific
Inherits Generic
Protected Overrides Sub BeforeSave
End Sub
Protected Overrides Sub AfterSave
End Sub
End Class
Alternative BeforeSave & AfterSave can be Overridable, allowing Generic to
offer a "default" implementation that Specific can replace if it needs to...
Of course BeforeSave & AfterSave could have parameters or be functions or
properties returning values.
Hope this helps
Jay
"Craig Buchanan" <so*****@somewhere.com> wrote in message
news:e3*************@TK2MSFTNGP11.phx.gbl...
I have a class named "Generic" and a second class named "Specific" which
inherits from Generic. I have a Save method in the Generic class. I
don't have an override in the Specific class. If I call Specific.Save, is there
a way for the Generic class's logic to route back to methods of the Specific
class?
Thanks,
Craig Buchanan