title: How to pass object as parameter in c#
body: <p>Sorry, I may be lacking in terminology, but my searches haven't provided any answer despite the trivial question. Here goes -</p>
  
  <p>I have a superclass and wish to be able to create a new object of any of the subclasses with a method like the the following:</p>
  
  <pre><code>static void AddNewVehicle(string brand, string model, int year, int price)
  {
      V.Add(new Car(brand, model, year, price));
  }
  </code></pre>
  
  <p>I imagined that I would be able to do it like this:</p>
  
  <pre><code>static void AddNewVehicle(object VehicleType, string brand, string model, int year, int price)
  {
      V.Add(new VehicleType(brand, model, year, price));
  }
  </code></pre>
  
  <p>...but I'm getting the following error:</p>
  
  <p><code>"The type or namespace name 'VehicleType' could not be found (are you missing a using directive or an assembly reference?)"</code></p>