I have a Class A that has some protected members that I want my base Class B to access. I also want Class B to be in the namespace under Class A. Is this possible?
Namespace BLL
Public Class A
Protected varA As Integer
Protected varB As String
End Class
End Namespace
Namespace BLL.A
Public Class B
Inherits A
Public Sub setA()
varA = 3
varB = "test"
End Sub
End Class
End Namespace
I then want to be able to access Class B like so:
BLL.A.B.setA()
When I do this I am getting an error "'A' is ambiguous in the namespace BLL". What am I doing wrong?