Комментарии:
Ur example method is static but u acess non static members inside it?
Ответитьthanks for making the static class understanding easier 😇
ОтветитьGreat, thank you Dani!
ОтветитьYour videos are great!
ОтветитьI been learning how to code for the past 2 months and i have to admit that your videos are very helpful! Thank You!
ОтветитьThe best !!
Thank you for the amazing explanation 👏👏
Weird use case for why you would want to instantiate a class that only holds functions, say you are calling thousands of asynchronous methods that may end up trying to run concurrently, a static class function call may actually become a bottleneck since it can only be called once at a time.
ОтветитьHello Sir, but tell me why we need a static method for calculator , what is the purpose?
I mean we could use the objects and a Structure method!!
Another great video, nice the way you clarify things to keep it as simple as possible and you're happy to reiterate it. Sign of a good teacher
ОтветитьHi Dani, the videos of your programming teaching series are very helpful for me to learn programming by myself. Can you make this film produce subtitles? Thank you.
ОтветитьSo basically static methods are similar to normal global functions in C...but a little more complicated? Just that in c# everything is object oriented so it has to be withing a namespace & class. Static functions in C are a different thing though. What about private static methods in C#. How will that work?
Ответитьwhy did you create variables int x and int y and then immediately create new int variables to assign to x and y?
ОтветитьPlease! Keep making such tutorials in C# OOP because they are useful , amazing and unique.
ОтветитьPerfect systematic transfer of knowledge! Bravo!
ОтветитьYou are on fire sir. Great thanks from Somalia.
ОтветитьI'm glad you speak english and I'm glad I can understand english. I already paid for content worse than this.
ОтветитьThank you for explaining this topic so well!
ОтветитьWho else thinks he looks like Elon Musk ? :D
ОтветитьGood job, keep going .
ОтветитьSo for people who like me forgot from his earlier video you have to tell CS that you are using the calc name space by putting it up above under "using System;" i put it as "using FirstProject.Calc;" without the quotes
ОтветитьExcellent teacher, one question. What do you mean with object, I still don't really get it, but I understood this episode.
ОтветитьWell done. Thank you
Ответитьyou just make me more confused.....because when telling the purpose of both cases you just run so fasttt
ОтветитьI know this video is over a year old, but I've got a question and I hope you or anyone else could help me with it.
Can I still access the method of add when I make the calculator object or not? When I tried to create a calculator object and than tried the method it didn't work, I assume this is I can't add the values for x and y? But I'm not sure.
You’re awesome 👏
Ответитьthe way you explain it makes for sense than that udemy guy.
ОтветитьI'm probably very wrong, but hopefully you can correct me. Right in the beginning, when you say you created a "Namespace" called Calc, is that not just a folder containing custom classes? or is my understanding wrong (definitely), I'm new to this and the concept of a namespace still confuses me.
Ответитьsubscribed.
Ответитьrandom question n e 1: if cap on second word is camelCase, what's the name of "_" prefix for _private variables?
Ответитьi'm still enjoying with all of your vidios.
ОтветитьA perfect explanation!
ОтветитьHello @mmtuts, Godt nyttår :-)
Can we just write the following code for calculator.cs?
```
using System;
namespace FirstProject.Calc
{
public class Calculator
{
public static int Add(int x, int y)
{
int Answer = x + y;
return Answer;
}
}
}
```
(I ditched the step with int Num1 = x and int Num2 = y)
Seems to work for me? Or is it a no-no to simplify like I did, and if so, why?
Cheers :-)
Thank you so much! I'm a student learning C# for my courses, and I was really struggling with refactoring my code via creating methods. This was a HUGE help!
ОтветитьShould have given an example of a non-static class in the video and compared both with a practical example.
Ответитьso far so good, you are a really good teacher
ОтветитьThank you for explaining this for normal human understanding 😂
ОтветитьYou are great MAN!
Ответитьi like the way you explain sir..it is clear. im new to c#. also if you're done covering all the crucial parts for c#, can you make tuto for wpf? Tnx in advance
ОтветитьI enjoy your videos, thanks for helping. Keep up the good work.
ОтветитьApologies if this was somehow posted earlier, but I'm trying to wrap my head around this idea of static methods. Coming from a background in VB and VBA, this just seems to me like static methods are really nothing more than the equivalent of procedures and functions in VB. Whereas in C# you would create a public class (which is really nothing more than a container in this context), then a public method, in VBA the equivalent would be to add a code module, then write procedures and functions inside it, a procedure to simply "do" something (e.g. static void), and a function to "return" something (e.g. static string), both known as methods in C#. Granted, I know this has nothing to do with instantiation or objects, but for the purposes of what's discussed in this video, am I correct in my understanding?
Ответитьwatching ur videos to learn csharp, thanx
Ответитьfinaly understood oof
ОтветитьYour thumbnails are always so welcoming
ОтветитьAs always a great help. Thanks mate!
ОтветитьDude just make the phone videos
ОтветитьNice video
ОтветитьAbsolutely Amazing. , You are the reason I started to like the idea of becoming developer. Thanks a lot for all this great work and help.
Ответить