Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
//filename: Car.cs using System; namespace MyApplication { class Car { public string model; // Create a class constructor with a parameter public Car(string modelName) { model = modelName; } static void Main(string[] args) { Car Ford = new Car("Mustang"); Console.WriteLine(Ford.model); } } }
Mustang