title: C# classes init function
body: <p>I am learning c#, having used python before, and i have started to use classes in my work.</p>
  
  <p>Python has the <code>__init__()</code> function to initialise a class, for example:</p>
  
  <pre><code>class name():
  
      __init__(self):
  
          # this code will run when the class is first made
  </code></pre>
  
  <p>Is there a similar function for c# classes?</p>
  
  <p>currently, I am creating a normal function inside the class and having to call it straight after it is made.</p>