In this C# tutorial you will learn to create classes and objects in C#. We use classes as blueprints in order to create many different objects based on these blueprints, and since objects are used all the time you will need to learn about objects.

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful 🙂

Material for this lesson:

Nguồn: https://abdevilliersfan.com

Xem thêm bài viết khác: https://abdevilliersfan.com/game/

45 Comments

Kazz

June 2, 2020

Omg you look like Mr.beast

Reply

OMAR H

June 2, 2020

you are better than my instructor
big thump

Reply

Ana Dias

June 2, 2020

I am from Brazil and I love your way of explanation.
Thank you a lot for the video. 👏🏻

Reply

Mary Paul

June 2, 2020

Good one

Reply

Bichen

June 2, 2020

Thank you so so so much!!

Reply

PRogramador Boricua

June 2, 2020

this is awesome! do you have a full tutorial of c#??!!

Reply

Niek Hamoen

June 2, 2020

Can I create a new .cs file with a command? I can't find it anywhere it's driving me crazy

Reply

Kyle McKee

June 2, 2020

Thanks so much for this. So many other videos assume you will understand some random small details but if you don't, you get lost. You explain all of the little details perfectly which has been great for me as a beginner. Thank you!

Reply

HowtoCGI School

June 2, 2020

Excellent explanation ! Exactly what I was looking for 😊

Reply

Cunan Story

June 2, 2020

Thank you..this OOP is a little bit tricky for me

Reply

IB vlogs

June 2, 2020

Absolutely Loved the way you explained each and every details!!!

Reply

Joel Watson

June 2, 2020

I wish I had this when I was learning c#, you're great man, keep it up great work!

Reply

DoubleDingle

June 2, 2020

Elon Musk looking ass

Reply

enlightenedunderground

June 2, 2020

excellent!

Reply

Clashing With Shivam

June 2, 2020

I got 85% – 90% of what you teach.
Edit :- But it is better than my paid C# course 😣.

Reply

arjun sowmya

June 2, 2020

this is the perfect video to know about class and objects in c# 🙂 🙂 🙂 🙂 🙂

Reply

Justin Pavone

June 2, 2020

Liked and subbed 🙂 Very good content here!

Reply

patrick B

June 2, 2020

chain your hands to the table pleese!

Reply

Christopher Luis Fernando Martinez

June 2, 2020

Thanks, this is what i was looking for

Reply

Paul Larose

June 2, 2020

Currently at a bootcamp. Poor coaches. They are instructed to not answer questions if they are too basic and are to send students back to research more…… Ive never programmed before.. Watching these videos honestly have been amazing. Great content.

Reply

Jamie Wilson

June 2, 2020

Thanks, this helped alot with OOP.

Reply

JONHPOL MORABOR

June 2, 2020

It only answered the Name and the Age of the person

Reply

JONHPOL MORABOR

June 2, 2020

The system did not read or answered if he has a pet or not in the output…

Reply

ADX

June 2, 2020

This is why I pay the Internet 👌

Reply

Xander Wittock

June 2, 2020

I think i might have learned some things in a different order, but wouldnt it be easier to create a new method in your main class called
public static void Greetings(string name, int age, bool pet)?
Its probably because its an easy example but i just want to make sure why you would choose making a class over a simple method
Thanks :)), great tutorial btw

Reply

The Secrets

June 2, 2020

i need the next episode please send me the link

Reply

Aaron Johnson

June 2, 2020

If I can advise anything: try using different names for different things not to confuse beginners. It would probably be better to say PersonCls myPersonObj = new PersonCls(); This is very clear what is what, I don't think that with your experience you can imagine the confusion this causes. Also can someone explain why this declaration is as so? When i create object of class Person, can it get different keyword after 'new'? And if i use = new Person, can the object be of different class? If no then i don't understand why the syntax is as such.

Reply

Alar Lill

June 2, 2020

Very useful and easy to understand, but I hate the fact, that you accent makes you pronounce "object" as "optic". 🙂 Keep up the good work!

Reply

Javi

June 2, 2020

Perfect explanation.

Reply

DAVID EMMANUEL

June 2, 2020

Nice

Reply

Mamadou Diallo

June 2, 2020

First time watching your tutorial…I subscribed right away, that's how good you are!

Reply

SpaceBlazed

June 2, 2020

Hey mmtuts, I don't know if this is new in the most recent version,
but I needed to declare everything in the public person class as static for it to work in the main class like so:

public static string Name;

public static int Age;

public static bool HasPet;

Otherwise I would get the error:

Error CS0120 An object reference is required for the non-static field, method, or property 'Person.HasPet'

So since the Main class is static, the variables in the public class person that we created
need to be declared as static aswell for it to be used in the Main class.
Then the Program will run without errors.

Reply

Anne Estoppey

June 2, 2020

This is a brilliant video and explanation of classes and methods (and field vs property). Thanks a lot! 🙂

Reply

Dagem kasahun

June 2, 2020

Thank you so mach

Reply

athman mbwana

June 2, 2020

You are a talented teacher, thanks

Reply

Niks

June 2, 2020

very good guide !

Reply

carbo gast

June 2, 2020

you really know how to teach Beginners , so easy to understand
you don't confuse the person which tries to learn
as always HQ stuff sir

Reply

carbo gast

June 2, 2020

love you man keep up the good work
don't forget php too <3

Reply

Techtac Gaming

June 2, 2020

… You literally just re-uploaded TheNewBoston's tutorials from when they were released 8 years ago, and claiming them as your own. It even announces this at the very beginning of the video.

Reply

DoorThief

June 2, 2020

Hey! One of the questions I had during this episode was why you chose to use Pascal case inside the class structure instead of camel case. But I put it together on my own, realizing that every other object used Pascal case and, since it was inside that must be the normal naming convention.

On another note, I was wondering why you chose to concatenate the Console.WriteLine string instead of using string interpolation, which I find much less tedious to write. Ex: $"Hello, my name is {Name}, I am {Age} years old}";

Reply

Kwaku solomon Ayeh

June 2, 2020

Thanks man, you saved me.

Reply

waqas mahmood

June 2, 2020

I love your way of explanation. You are my kind of teacher who explains basic and doesn't assume that others will pick up the complex concepts easily.
When I first listened to you, I thought you must be Danish (Your English accent). Now, I have checked your About which confirms that you are indeed Danish.
Thusind tak for fantastiske videoer

Reply

yona emanuel

June 2, 2020

You are a great man, be blessed.

Reply

Learningaccount

June 2, 2020

You explained it pretty bad. Could’ve just said that a class is for examples, shapes. It has subcategory. There are dogs, and then there are the different races of dogs. Cars – luxury, sport, etc.

Reply

ausmoons

June 2, 2020

Thank you a lot for the video. Finally I understood this topic.

Reply

Leave a Reply