This may be a trivial question, but it's stumping me.
Public Class A
End Class
Public Class B
Inherits A
Public Sub New B(ByRef a as A)
'I want this class to reference 'a' and not copy it.
End Sub
End Class
The idea is that you provide an instance of the base class 'A' and wrap
class 'B' around the same instance to provide extra functionality. I want to
specialise class 'A' into class 'B'. How do I do this?
Dave
Public Class A
End Class
Public Class B
Inherits A
Public Sub New B(ByRef a as A)
'I want this class to reference 'a' and not copy it.
End Sub
End Class
The idea is that you provide an instance of the base class 'A' and wrap
class 'B' around the same instance to provide extra functionality. I want to
specialise class 'A' into class 'B'. How do I do this?
Dave
Comment