VB.NET - Create an Overridable Method



Uses the Sub keyword to define a private method that does not return a value.

Define a Sub that is Private
'MethodName -SyntaxHelp
Private Sub SyntaxHelp()

End Sub

Defines an Overridable Sub.

Define a Sub that is Overridable
'Namespace: Microsoft.VisualBasic

'Overridable MethodName SyntaxHelp
Overridable Sub SyntaxHelp()
 'Your code goes here 
End Sub

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.