title: Why do we need partial Class in .NET
body: <p>In .Net when an application is compiled, it groups all the partial classes and considers them as a single object.</p>
  
  <pre><code>public partial class DemoClass
  {
          public void Hello()
          {
          }
  }
  
  public partial class DemoClass
  {
          public void Bye()
          {
          }
  } 
  </code></pre>
  
  <p>In code Behind Partial Class is there always</p>
  
  <pre><code> public partial class Default : System.Web.UI.Page
      {
          protected void Page_Load(object sender, EventArgs e)
          {
  
          }
      }
  </code></pre>
  
  <p>Then why do we have partial classes in .NET?</p>