C# C# Basics (Retired) Prepare and Plan Program Structure

What do we mean by Parameters ()? What do i have put in there? The one in " "?

class Program { static void Main "()" {

}

}

1 Answer

I didn't see anything related to parameters in the quiz connected to this question, so I'm assuming your just asking about parameters in general.

class Program { static void Main () { SayHello("David"); }

void SayHello(string firstName) { System.Console.WriteLine("Hello " + firstName); }

}

The output will display "Hello David". The parameter is the string firstName and is used to pass information around.