H
Horace
Hello
I have a class Parent1 that instantiates Child1 and Child2. But Child1
calls methods in Child2 like so :-
========================================
Imports Tiger_Devl.Includes.Child1
Imports Tiger_Devl.Includes.Child2
Namespace Includes
Public Class Parent1
Public This_Child1 As Includes.Child1
Public This_Child2 As Includes.Child2
Public Sub New()
This_Child1 = New Child1()
This_Child2 = New Child2()
End Sub
End Class
End Namespace
========================================
Namespace Includes
Public Class Child1
Public Sub ValidateIt(...)
...
WriteToLog(...)
...
End Sub
End Class
End Namespace
========================================
Namespace Includes
Public Class Child2
Public Sub WriteToLog(...)
...
End Sub
End Class
End Namespace
========================================
I know I could rearrange the structure of the above to make Parent1
instantiate Child1 which instantiates Child2 but there some other issues
making it very inconvenient to do so. Is there a way to the above without
restructuring the hiearchy ?
Cheers
Phil
I have a class Parent1 that instantiates Child1 and Child2. But Child1
calls methods in Child2 like so :-
========================================
Imports Tiger_Devl.Includes.Child1
Imports Tiger_Devl.Includes.Child2
Namespace Includes
Public Class Parent1
Public This_Child1 As Includes.Child1
Public This_Child2 As Includes.Child2
Public Sub New()
This_Child1 = New Child1()
This_Child2 = New Child2()
End Sub
End Class
End Namespace
========================================
Namespace Includes
Public Class Child1
Public Sub ValidateIt(...)
...
WriteToLog(...)
...
End Sub
End Class
End Namespace
========================================
Namespace Includes
Public Class Child2
Public Sub WriteToLog(...)
...
End Sub
End Class
End Namespace
========================================
I know I could rearrange the structure of the above to make Parent1
instantiate Child1 which instantiates Child2 but there some other issues
making it very inconvenient to do so. Is there a way to the above without
restructuring the hiearchy ?
Cheers
Phil