tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code02:46

C# auto implemented properties 🔐

Bro Code ↗

From the creator

C# auto implemented properties tutorial example explained #C# #auto-implemented #properties using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { // Auto-Implemented properties = shortcut when no additional logic is required in the property // you do not have to define a field for a property, // you only have to write get; and/or set; inside the property Car car = new Car("Porsche"); Console.WriteLine(car.Model); Console.ReadKey(); } } class Car { public String Model {get; set;} public Car(String model) { this.Model = model; } } }

Published 2021-07-03 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code