Link to home
Start Free TrialLog in
Avatar of LeighWardle
LeighWardleFlag for Australia

asked on

How to define behaviour of Parent Class?

Hi Experts,

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

Open in new window


So I have 2 Child classes, clsLicenceSentinel and clsLicenceSoftwareKey, with Parent Class, clsLicence.

How do I define Property strProgramNameAndMajorVersion()  so that the appropriate definition in the Child class is used?

Regards,
Leigh
ASKER CERTIFIED SOLUTION
Avatar of ChloesDad
ChloesDad
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LeighWardle

ASKER

Thanks, ChloesDad.
Just what  I needed.
Cheers, Leigh