.NET: Interface Problem VB.net Getter Only Interface
- by snmcdonald
Why does an interface override a class definition and violate class encapsulation? I have included two samples below, one in C# and one in VB.net?
VB.net
Module Module1
Sub Main()
Dim testInterface As ITest = New TestMe
Console.WriteLine(testInterface.Testable) ''// Prints False
testInterface.Testable = True …