7 days of WordPress plugins, themes & templates - for free!* Unlimited asset downloads! Start 7-Day Free Trial
FREELessons: 10Length: 42 minutes

Next lesson playing in 5 seconds

  • Overview
  • Transcript

2.7 Default Constructors for Structs

We have never been able to define our own default constructor for structs; instead, one was always generated by the compiler. With C# 6 we can finally write our own default constructors for structs, but there are two key things to remember. You'll learn what they are in this lesson.