Something like this. Call the sub GetValue. Add this class code to your project. Dim it in the main Activity like:
Dim Test As Tester 'Or whatever you name it
MsgBox(Test.GetValue, "My Test")
'Class module
Private Sub Class_Globals
Private testers As Int
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize
testers = 1
End Sub
Public Sub GetValue As Int
Return testers
End Sub