Skip to content

Instantly share code, notes, and snippets.

Created February 1, 2019 22:01
What would you like to do?
MustInherit Class Base
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