title: derived class accessibility
body: <p>Why in C# it is not allowed for derived classes to have greater accessibility than its base class.</p>
  
  <p>For example this will give error : Inconsistent accessibility: base class 'BaseClass' is less accessible than class 'DerivedClass'</p>
  
  <pre><code>internal class BaseClass
  {
  }
  
  public class DerivedClass : BaseClass
  {
  }
  </code></pre>
  
  <p>And why it is allowed in Java.</p>