using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { // method = performs a section of code, whenever it's called "invoked". // benefit = Let's us reuse code w/o writing it multiple times // Good practice is to capitalize method names (I forgot in this video) String name = "Bro"; int age = 21; SingHappyBirthday(name, age); Console.ReadKey(); } static void SingHappyBirthday(String birthdayBoy, int yearsOld) { Console.WriteLine("Happy birthday to you!"); Console.WriteLine("Happy birthday to you!"); Console.WriteLine("Happy birthday dear " + birthdayBoy); Console.WriteLine("You are " + yearsOld + " years old!"); Console.WriteLine("Happy birthday to you!"); Console.WriteLine(); } } }
@pochidenki99093 ай бұрын
You're the first one that succesfully explained how methods and arguements work to me. Thanks Bro!
@gillesherpoel14542 ай бұрын
Just a random comment of thankfulness. i dealt with a burnout for two years and now i'm very rusty. you're course is picking my knowledge up so fast. thanksss
@MonLes-xt7gc Жыл бұрын
It's such a joy to finish a full tutorial in a day.
@zachteel15027 ай бұрын
Loving how well you lay out your videos. They are so descriptive and also so concise and easy to follow. Thank you so much for all your work!
@ryanncushway83842 жыл бұрын
Your work is appreciated!
@goldenforex0 Жыл бұрын
You just earned a new sub, Your work is easy to understand! Lovely💙
@haxor-lt5pn Жыл бұрын
Best tutorial yet on this topic, thank you
@nononnomonohjghdgdshrsrhsjgd Жыл бұрын
Very good course! I hope you explain later what is static, void, visual studio environment (creating files, types of files and application)
@Alexhusen46074 ай бұрын
I love your videos it’s really special when you are explaining
@Celebros9 Жыл бұрын
Hey man, I have just seen you are using VS code but what I am intrigued about is your setup. As I am starting with C# and I am also using VS Code I would like to ask you if you can give me some hints regarding Diagnostic tools, call stacks and all other extensions you are using as I find them very useful and would like to set it up for C# (or perhaps for other programming language) as well. Many thanks!
@South_Host_35039 ай бұрын
he is using vs community
@kpowerbg Жыл бұрын
the best explanation to methods I have seen so far !!
@KadasoyioАй бұрын
Such an excellent and easy to follow explanation. Thank you!
@spartanranger3 жыл бұрын
Thanks for the video brother
@austinsutton69239 ай бұрын
This actually helped so much, thank you 🙏🙏🙏
@lukey4670 Жыл бұрын
goated channel, saving me so many headaches. thanks man 😁
@blanketparty5259 Жыл бұрын
You are a wizard at explaining this stuff man , do you do classes?
@cunkycakes Жыл бұрын
These are his classes 😂
@ZeeWolfed Жыл бұрын
3 word: YOU ARE AWSOME !! Extra word Thank BRO
@oliver970 Жыл бұрын
Bro writes Java style in c# like a boss
@saihajmann6622 Жыл бұрын
funny glitch, my video is stuck looping the clicking class. I can't move forward or back to escape.
@annecabrera3452 жыл бұрын
super helpful, Bro
@lmash2265 ай бұрын
Thank you so much! You LITERALLY saved my ass!😭
@SleepyBombay2 жыл бұрын
your the best this is the most helpful playlist ur a g man
@FarukqO Жыл бұрын
awesome bro code, keep up the good work
@Stine293 Жыл бұрын
thanks, bro
@dHeIoxy Жыл бұрын
good job Bro
@genevievebennett89833 жыл бұрын
these vids need more views
@parhamyadollahi627910 ай бұрын
class Program { static void Main(string[] args) { // Example usage: // Creating an array of objects object[] objectsArray = new object[] { new Car(), new Person(), // Add more objects of different types here }; // Calling the static function with the array of objects AssistObjects(objectsArray); } static void AssistObjects(object[] objects) { foreach (var obj in objects) { if (obj is IAssistable assistableObject) { assistableObject.Assist(); } } } } // Example classes implementing the IAssistable interface interface IAssistable { void Assist(); } class Car : IAssistable { public void Assist() { Console.WriteLine("Car is providing assistance."); } } class Person : IAssistable { public void Assist() { Console.WriteLine("Person is providing assistance."); } }
@coreyb1102 Жыл бұрын
Thank you!
@Lulzsek2 ай бұрын
Thank u Dear BRO :)
@Samytalkss11 күн бұрын
You're the best
@enespinar971111 ай бұрын
Bro that was impressive
3 жыл бұрын
Thanks Bro!
@CầnbiếtKo-k5i Жыл бұрын
theo tôi nghĩ thì 1 kênh youtobe hướng dẫn học mà không có sự tương tác giữa người dạy và người học thì sẽ không sống lâu đâu !
@bdn11102 жыл бұрын
Thanks 👍
@Killer-lv2wfАй бұрын
what if i want to calculate something in the method and then send the result to main how would i do that
@eastern81510 ай бұрын
👍
@simik48304 күн бұрын
algorithm!
@whitedinamo2 жыл бұрын
lesson check😇
@budderrar5751 Жыл бұрын
noice
@jafargamer81422 жыл бұрын
If i want to ask for age in the mathed how can i do that?
@ahmedhassan578310 ай бұрын
done!
@cga01nuwa4 ай бұрын
random comment below
@yasinsahinkaya27558 ай бұрын
how to be if ? like this if(singHappyBirthday()=true) {Console.Writeline("yep")}
@איתןישייבАй бұрын
random comment
@the_dude_josh9 ай бұрын
A random comment down below
@user-fw3wl6rv1v2 жыл бұрын
Hey bro I have a question hope you answer, I wanted to make a void method outputs an integer, you don't need to tell me the answer but an explanation would be appreciated.