Classes (Exercise) – Learn C#

Yes, believe it or not, we’re already on the 8th part of this tutorial series. We’ve gone through the absolute basics like variables and loops and now we’re going to enter a brave new world: object oriented programming (OOP).

In this tutorial, you will learn why there’s even a need for classes, how to create them, what are fields, what is a constructor and more!


This is an exercise for this YouTube video.

Happy learning and good luck!


Does every class originally have an implicit parameterless constructor?
With which operator can you access a member (e.g. a field) from an object?
How is the highlighted part of code called?

Pumpkin p = new Pumpkin() { Color = "orange" };


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.


2 years ago

how did you ever learn coding?

Matej Rešetár

2 years ago

Just practice and commitment 😉

Tamim Productions

1 year ago

Hey man i really appreciate your work! And your a great teacher.. I’ve learned c# from an app but checking your videos have Refreshed my mind and i was going to save a lot of time if i just found them from the begging.. Keep it up ❤

Matej Rešetár

1 year ago

Thank you 🙂

Development made simple

We're here to help you. If you have any questions, let us know.

Copyright 2017 - 2018 Reso Coder © All Rights Reserved