I am doing a program in console more than anything for fun and I get the following error:
Property access must be assigned to the property or use its value.
This is where I get the error:
character.arma (5)
The class code is:
Class persona
Private vida, daño As Integer
Private nombre As String
Public Property arma As Integer
Get
Return daño
End Get
Set(ByVal puño As Integer)
daño = puño
End Set
End Property
Public ReadOnly Property barra As Integer
Get
Return vida
End Get
End Property
Public Sub aumento(ByVal subida As Integer)
vida = vida + subida
End Sub
End Class