R
Ron
I have a couple of questions about this class.....:
Public Class WordPair
Private word1 As String
Private word2 As String
Public Sub New()
word1 = ""
word2 = ""
End Sub
Public Sub New(ByVal w1 As String, ByVal w2 As String)
word1 = w1
word2 = w2
End Sub
Public Property first() As String
Get
Return word1
End Get
Set(ByVal w1 As String)
word1 = w1
End Set
End Property
Public Property second() As String
Get
Return word2
End Get
Set(ByVal w2 As String)
word2 = w2
End Set
End Property
Public Function isFull() As Boolean
'Determines if a WordPair object contains both words
End Function
I then have a form that has a button, display, a testbox and a
label. I want to give the class an object called ones and then
twoes
I then want to fill ones word1 with smoke and word2 with alarm
After the pressing the button the label would display word1 and word2,
but they would actually have the values smoke and alarm in them/?
How do I do something like this?
Public Class WordPair
Private word1 As String
Private word2 As String
Public Sub New()
word1 = ""
word2 = ""
End Sub
Public Sub New(ByVal w1 As String, ByVal w2 As String)
word1 = w1
word2 = w2
End Sub
Public Property first() As String
Get
Return word1
End Get
Set(ByVal w1 As String)
word1 = w1
End Set
End Property
Public Property second() As String
Get
Return word2
End Get
Set(ByVal w2 As String)
word2 = w2
End Set
End Property
Public Function isFull() As Boolean
'Determines if a WordPair object contains both words
End Function
I then have a form that has a button, display, a testbox and a
label. I want to give the class an object called ones and then
twoes
I then want to fill ones word1 with smoke and word2 with alarm
After the pressing the button the label would display word1 and word2,
but they would actually have the values smoke and alarm in them/?
How do I do something like this?