Hello
I am not sure if you allow beginner questions here. If not I apologise and will leave :)
I am new to programming. Only started yesterday after tinkering with AutoIT a little. I was advised that C# had the best balance of functionality vs ease of learning compared with C++ and VB. While waiting for my text books to arrive I am doing a little background reading.
I am struggling to get my head around Methods. Are they the same as Functions in other languages? Can you create a Method, or are they 'built in' to C#?
Does anybody have any tips for me on learning C#?
Like I said, my apologies if my questions are too basic for the forum.
Thanks
M
Loading
LeePosted Mar 26, 2011, 6:03 AM
I just wanted to say thank you for all your replies. It's certainly clearer now than when I read this tutorial lol.
Thanks again, no doubt I will be back once I've got my head around when to use a double and when to use a float lol...
Sam HobbsPosted Mar 25, 2011, 11:35 PM
Have you looked at the language tutorials and other beginner articles in this web site? I hope they are enough to keep you busy until your text books arrive.
If you have a computer at home with Visual Studio installed, then you have a million times more than what I had when I began programming. For me, when I began learning, the only computer was miles away and I had to program it using 80-column IBM / Hollerith cards and a keypunch machine and a card reader attached to the computer. When I began working as a programmer there were times when I was lucky to get more than two runs a day where each run was a compile and/or test.
Mahesh ChandPosted Mar 25, 2011, 11:28 PM
Jonathas SucupiraPosted Mar 25, 2011, 5:01 PM
Functions is stand alone and methods are members of a class.
VulpesPosted Mar 25, 2011, 4:59 PM
All functions have to be members of either a class or struct and they are then called 'methods'.
You can create your own classes and structs and these can contain as many methods as you like.
There's also a library called the .NET Framework which has lots of pre-built classes and structs whose methods you can call in your own programs.