methods Flashcards

(4 cards)

1
Q

what is a method

A

a block of code that carries out a specific task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how do you make a method

A

outside of the main
{

}
static void ANS()
{

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how do you get the method to run

A

in the main method place

ANS();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how do you make an array produce multiple strings

A
{
ANS ("ans0");
ANS ("ans1");
ANS ("ans2");
}
static void ANS(string name)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly