methods Flashcards
(4 cards)
1
Q
what is a method
A
a block of code that carries out a specific task
2
Q
how do you make a method
A
outside of the main
{
}
static void ANS()
{
}
3
Q
how do you get the method to run
A
in the main method place
ANS();
4
Q
how do you make an array produce multiple strings
A
{ ANS ("ans0"); ANS ("ans1"); ANS ("ans2"); } static void ANS(string name)