LeighWardle
asked on
How to define behaviour of Parent Class?
Hi Experts,
Here is an outline of my code:
So I have 2 Child classes, clsLicenceSentinel and clsLicenceSoftwareKey, with Parent Class, clsLicence.
How do I define Property strProgramNameAndMajorVers ion() so that the appropriate definition in the Child class is used?
Regards,
Leigh
Here is an outline of my code:
Public Class clsLicence
Public Property strProgramNameAndMajorVersion() As String
End Class
Public Class clsLicenceSentinel
Inherits clsLicence
Public Property strProgramNameAndMajorVersion() As String
Get
'....
End Get
Set(ByVal Value As String)
'....
End Set
End Property
End Class
Public Class clsLicenceSoftwareKey
Inherits clsLicence
Public Property strProgramNameAndMajorVersion() As String
Get
'....
End Get
Set(ByVal Value As String)
'....
End Set
End Property
End Class
So I have 2 Child classes, clsLicenceSentinel and clsLicenceSoftwareKey, with Parent Class, clsLicence.
How do I define Property strProgramNameAndMajorVers
Regards,
Leigh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Just what I needed.
Cheers, Leigh