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/
Kazz
June 2, 2020Omg you look like Mr.beast
OMAR H
June 2, 2020you are better than my instructor
big thump
Ana Dias
June 2, 2020I am from Brazil and I love your way of explanation.
Thank you a lot for the video. 👏🏻
Mary Paul
June 2, 2020Good one
Bichen
June 2, 2020Thank you so so so much!!
PRogramador Boricua
June 2, 2020this is awesome! do you have a full tutorial of c#??!!
Niek Hamoen
June 2, 2020Can I create a new .cs file with a command? I can't find it anywhere it's driving me crazy
Kyle McKee
June 2, 2020Thanks 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!
HowtoCGI School
June 2, 2020Excellent explanation ! Exactly what I was looking for 😊
Cunan Story
June 2, 2020Thank you..this OOP is a little bit tricky for me
IB vlogs
June 2, 2020Absolutely Loved the way you explained each and every details!!!
Joel Watson
June 2, 2020I wish I had this when I was learning c#, you're great man, keep it up great work!
DoubleDingle
June 2, 2020Elon Musk looking ass
enlightenedunderground
June 2, 2020excellent!
Clashing With Shivam
June 2, 2020I got 85% – 90% of what you teach.
Edit :- But it is better than my paid C# course 😣.
arjun sowmya
June 2, 2020this is the perfect video to know about class and objects in c# 🙂 🙂 🙂 🙂 🙂
Justin Pavone
June 2, 2020Liked and subbed 🙂 Very good content here!
patrick B
June 2, 2020chain your hands to the table pleese!
Christopher Luis Fernando Martinez
June 2, 2020Thanks, this is what i was looking for
Paul Larose
June 2, 2020Currently 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.
Jamie Wilson
June 2, 2020Thanks, this helped alot with OOP.
JONHPOL MORABOR
June 2, 2020It only answered the Name and the Age of the person
JONHPOL MORABOR
June 2, 2020The system did not read or answered if he has a pet or not in the output…
ADX
June 2, 2020This is why I pay the Internet 👌
Xander Wittock
June 2, 2020I 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
The Secrets
June 2, 2020i need the next episode please send me the link
Aaron Johnson
June 2, 2020If 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.
Alar Lill
June 2, 2020Very useful and easy to understand, but I hate the fact, that you accent makes you pronounce "object" as "optic". 🙂 Keep up the good work!
Javi
June 2, 2020Perfect explanation.
DAVID EMMANUEL
June 2, 2020Nice
Mamadou Diallo
June 2, 2020First time watching your tutorial…I subscribed right away, that's how good you are!
SpaceBlazed
June 2, 2020Hey 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.
Anne Estoppey
June 2, 2020This is a brilliant video and explanation of classes and methods (and field vs property). Thanks a lot! 🙂
Dagem kasahun
June 2, 2020Thank you so mach
athman mbwana
June 2, 2020You are a talented teacher, thanks
Niks
June 2, 2020very good guide !
carbo gast
June 2, 2020you 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
carbo gast
June 2, 2020love you man keep up the good work
don't forget php too <3
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.
DoorThief
June 2, 2020Hey! 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}";
Kwaku solomon Ayeh
June 2, 2020Thanks man, you saved me.
waqas mahmood
June 2, 2020I 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
yona emanuel
June 2, 2020You are a great man, be blessed.
Learningaccount
June 2, 2020You 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.
ausmoons
June 2, 2020Thank you a lot for the video. Finally I understood this topic.