07:31C# array of objects 🏬
From the creator
C# array of objects tutorial example explained #C# #array #objects using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { Car[] garage = { new Car("Mustang"), new Car("Corvette"), new Car("Lambo") }; foreach (Car car in garage) { Console.WriteLine(car.model); } Console.ReadKey(); } } class Car { public String model; public Car(String model) { this.model = model; } } }
Published 2021-07-03 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





