Soinagie
Soinagie
CC#
Created by Soinagie on 3/6/2023 in #help
✅ stateful versus stateless methods?
Could someone please give me a simple example of these 2 methods as I don't really get what they do
162 replies
CC#
Created by Soinagie on 3/3/2023 in #help
✅ confused about classes
Class MainClass
{
Public static void Main ()
{
Random numberGenerator = new Random();
int num01 = numberGenerator.Next(1,11);
int num02 = numberGenerator.Next(1,11);
Console.WriteLine (num01 "and" num02);
Console.ReadKey();
}
}
Class MainClass
{
Public static void Main ()
{
Random numberGenerator = new Random();
int num01 = numberGenerator.Next(1,11);
int num02 = numberGenerator.Next(1,11);
Console.WriteLine (num01 "and" num02);
Console.ReadKey();
}
}
I'm watching brackeys and he's talking about referencing a class but it doesn't make sense to me, he didn't call it
class
class
and even if he did, why? Is random number generator some sort of class? Like I don't get it at all
204 replies
CC#
Created by Soinagie on 2/26/2023 in #help
❔ can't '-' int
String age = "";
Convert.toInt32(age);
Console.WriteLine (age - 1);
Console.ReadKey();
String age = "";
Convert.toInt32(age);
Console.WriteLine (age - 1);
Console.ReadKey();
Why can't I minus 1 an int? Its a number
82 replies
CC#
Created by Soinagie on 2/25/2023 in #help
❔ what's an object?
Can somebody please explain to me in very simple words what's an obkect as I don't understand it from explanations on the internet
1090 replies
CC#
Created by Soinagie on 2/15/2023 in #help
❔ what is string[] args?
As title says
134 replies
CC#
Created by Soinagie on 2/5/2023 in #help
void and return
For starters I still don't undersatnd basically everything so sorry for being stupid Do you always have to use return in non void methods since its the only way to get a value out of it? Why would I make non void method without a return?
15 replies