/base-derived-init.vb Secret
Created
February 1, 2019 22:01
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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