P
portroe
I need to slip a simple method into the following class,
the method should display a message box, displaying the entered
information..
Public Class employee
'Declaration of variables
Private iName, iTitle As String
Private iAge, iYearsofService As Integer
Property Name() As String
'The Property value is retrieved
Get
Return iName
End Get
Set(ByVal Value As String)
iName = Value
End Set
End Property
Property Title() As String
Get
Return iTitle
End Get
Set(ByVal Value As String)
iTitle = Value
End Set
End Property
Property Age() As Integer
Get
Return iAge
End Get
Set(ByVal Value As Integer)
iAge = Value
End Set
End Property
Property Yearsofservice() As Integer
Get
Return iYearsofservice
End Get
Set(ByVal Value As Integer)
iYearsofservice = Value
End Set
End Property
' Constructor
Public Sub New(ByVal Name As String, ByVal Title As String, _
ByVal Age As Integer, ByVal Yearsofservice As Integer)
Me.iName = Name
Me.iTitle = Title
Me.iAge = Age
Me.iYearsofservice = Yearsofservice
End Sub
End Class
######################
i can't figure the syntax,
thanks
Portroe
the method should display a message box, displaying the entered
information..
Public Class employee
'Declaration of variables
Private iName, iTitle As String
Private iAge, iYearsofService As Integer
Property Name() As String
'The Property value is retrieved
Get
Return iName
End Get
Set(ByVal Value As String)
iName = Value
End Set
End Property
Property Title() As String
Get
Return iTitle
End Get
Set(ByVal Value As String)
iTitle = Value
End Set
End Property
Property Age() As Integer
Get
Return iAge
End Get
Set(ByVal Value As Integer)
iAge = Value
End Set
End Property
Property Yearsofservice() As Integer
Get
Return iYearsofservice
End Get
Set(ByVal Value As Integer)
iYearsofservice = Value
End Set
End Property
' Constructor
Public Sub New(ByVal Name As String, ByVal Title As String, _
ByVal Age As Integer, ByVal Yearsofservice As Integer)
Me.iName = Name
Me.iTitle = Title
Me.iAge = Age
Me.iYearsofservice = Yearsofservice
End Sub
End Class
######################
i can't figure the syntax,
thanks
Portroe