Public Class Reel Public Property Reel As String Public Property Payout As Integer Private Sub New(ByVal msg As String) Me.Reel = msg End Sub Private Sub New(ByVal pay As Integer) Me.Payout = pay End Sub Private Sub New(ByVal msg As String, ByVal pay As Integer) Me.Reel = msg Me.Payout = pay End Sub End Class
And initialize the class like this:
Dim reel1 As New Reel("Cherry | Cherry | Cherry", 5)
That would initialize a new instance of the class and set the two properties.
I've tried creating something like that in Python and came up with this:
class reel(): reel = "" payout = 0 def __init__(msg, pay): reel = msg payout = int(pay)
But apparently that isn't the way that you pass the parameters. Could somebody please help me out.