Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MustInherit Class Base
' OOP OP?
Private Cached As Object = DerivedFactory()
Protected MustOverride Function DerivedFactory() As Object
End Class
Class Derived
Inherits Base
Protected Overrides Function DerivedFactory() As Object
Return New Object()
End Function
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.