Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
C# auto implemented properties ๐Ÿ”
Play lesson

C# tutorial for beginners ๐ŸŽต - C# auto implemented properties ๐Ÿ”

5.0 (6)
48 learners

What you'll learn

This course includes

  • 4 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

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; } } }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere