c# create object with properties code example
Example 1: c# create new object
Car mycar = new Car();
Example 2: c# new object
//Declaring a new object of type Galaxy.
Galaxy aGalaxy = new Galaxy();
Car mycar = new Car();
//Declaring a new object of type Galaxy.
Galaxy aGalaxy = new Galaxy();