Skip to content

Instantly share code, notes, and snippets.

@AnthonyDGreen
Created February 1, 2019 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnthonyDGreen/fe5ca89e5a98efee97ffee93aa684e50 to your computer and use it in GitHub Desktop.
Save AnthonyDGreen/fe5ca89e5a98efee97ffee93aa684e50 to your computer and use it in GitHub Desktop.
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