C# Tutorial 5 Classes & OOP

27
1



Get the Code Here :
Best C# Book :
Support me on Patreon :

We start learning about object oriented programming in this part of my C# tutorial. We’ll cover Classes, Methods, Fields, Constructors, Static Classes, Methods and Fields, Structs and Nullable Types. I’m going to cover OOP over a few videos to make sure everyone completely understands everything.

For best results take notes on the cheat sheet provided above as you watch and leave any questions you have.

Thank you to Patreon supporters like the following for helping me make this video

facebook.com/cottageindustriesbuild/
jaryd remillard : instagram: @distant_admiration
bugreplay.com
@kyleaisho
@thetwistedhat
vjFaLk
jaryd remillard :

Nguồn:https://wijstaanvooronzegrondrechten.org/

Xem Thêm Bài Viết Khác:https://wijstaanvooronzegrondrechten.org/cong-nghe

27 COMMENTS

  1. This is good course for people who want to remember how to work with classes and methods but it is so fast for people who want to understand how programming in OOP works

  2. I've loved all of your videos that I've seen but still when objects and classes are discussed by even your good self there is an absence of real world programming. How likely is it that a programmer would be defining and creating animals and foxes etc?

  3. Hi, is there a way to "softcode" a variable type? For example, you are using double to set the sides of the rectangle. If later you decide that you need another type, you'll need to rewrite all the code. Can you define somehow "sideType = double" and use sideType in the code? I hope you understand what i mean.

  4. Hi Derek! I'm confused about one thing. When you made the constructor, I saw that only  "Public" was typed in before the name of the contstructor, like : "Public Animal()". Why we can avoid the rest of the thing like "void"? And what if we make methods for the object, I mean, it is necessary to write out the return type like "void" or "int"?

  5. Hey, well I might be a bit late on this here but I am coming from Java and since there is no thing such as a struct there, I am kind of confused on when it is right or good practise to use a struct and when it is right and good practise to use a class? If you have situations where both would work out for you, using which one is considered "cleaner" ?

  6. Too fast for slow people like me, sorry,maybe for some it's a good tut, but there are way too much happening with little time given to process the info. Sadly I must dislike you sir. But keep trying.

  7. Hey man,I'm doing an A level on C# and this was really clear and helpful. I never really understood the object oriented side of C# until now. It has opened up so much more possibilities in what I can program. Thank you so much.

  8. I am from Poland, but I coudn't find a better course of this C#. You explain this subject really fast, but very fluently and understandable. I like what you once said: "You dont have to remember that, just know that it exists, and then u can look at the cheat sheet". That's how man can study – just to rewind even 10 times, till he understand, or look at the code with adnotations. Your work is appreciated!

  9. I'm still confused of when exactly write.line is executed for it to take the change of value it was set after it is called.

    Can anybody explain this to me?

  10. The biggest challenge I found in this video is at 3:45. You said that when you assign rect2 = rect1 , they are not referencing the same object. But how? In oop we know unlike variable, when we assign an object to a variable, the variable points to that object. So, when we did rect2 = rect2 ; they both should point to the same rectangle object , thus if I change the length of rect1 , then rect2.length will automatically get changed since they are pointing the save object after all. What am I missing here ?

LEAVE A REPLY

Please enter your comment!
Please enter your name here