I have a class MyVisible having a property Visible.
I have a class MySuperVisible implementing a interface ISuperVisible, that contains also property Visible.
How should I implement the “Visible” property of the interface “ISuperVisible” in “MySuperVisible” class?
Class MySuperVisible
Inherits MyVisible
Implements ISuperVisible
...
Private Property PrivatePropertyPlaceholder Implements ISuperVisible.Visible
Get
Return MyBase.Visible
End Get
Set
MyBase.Visible = value
End Set
End Property
is implementing a private property the only solution to do it?
PS.
MySuperVisible inherits MyVisible, so I need to implement a property that already exists in the base class.
Interesting question. I think the
Shadowskeyword is probably the appropriate way to go here. That makes things a little more explicit thanPrivatePropertyPlaceholder: