title: Declaring a new instance of class with or without parentheses
body: <p>I'm writing a small example to practice creating new instances of a class.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>class Person
  {
     public string Name { get; set; }
     public int Age { get; set; }
  }
  
  class MainClass
  {
     static void Main()
     {
        var p = new Person
        {
           Name = "Harry",
           Age = 20
        };
        Console.WriteLine($"Name: {p.Name}. Age: {p.Age}");
  
        p = new Person()
        {
           Name = "Hermonie",
           Age = 18
        };
        Console.WriteLine($"Name: {p.Name}. Age: {p.Age}");
  
        Console.ReadLine();
     }
  }
  </code></pre>
  
  <p>It's working.</p>
  
  <p>My question: What's the difference between </p>
  
  <pre><code>var p = new Person {};
  </code></pre>
  
  <p>and</p>
  
  <pre><code>var p = new Person() {};
  </code></pre>
  
  <p>Which version should I use?</p>