Hot answers tagged


Protected behaves like private, except that child classes can access the methods or properties. So, LeadComponentVisibility can call the method, because it is a descendant, but other classes cannot access that method at all, either from the parent or child class. The compiler has no way of knowing that an instance of ComponentVisibility is actually a ...

Only top voted, non community-wiki answers of a minimum length are eligible