Android Question Class Memory Usage???

Patrick Clark

Active Member
Licensed User
If I have a class that needs to be used in multiple B4XPages, will it use more memory for each instance I declare? Or will it only allocated additional memory for the variables within the class?

Sub Class_Globals
    Public msgResult As Int = 0
End Sub

Public Sub Initialize

End Sub

Private Sub Result1
    msgResult = 1
End Sub

Private Sub Result2
    msgResult = 2
End Sub

Private Sub Result3
    msgResult = 3
End Sub

if I create an instance of this class in 20 B4XPages will this use a lot of memory? (The actual class code I have is much bigger)