Select from following answers:- MustInherit
- Shared
- NotInheritable
- None of these.
- All Above
static class equivalence in Vb.Net is Shared Class.
Example:-
Public Class Class2
Public Shared Function Add(ByVal a As Integer, ByVal b As Integer) As Integer
Return a + b
End Function
End Class
//To access above method,just write below code any anywhere
Class2.Add(1, 1)
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator