What are method used to?
public partial class Form1 : Form
{
private void myButton_Click(object sender, EventArgs e)
{
Method2();
}
private void Method2()
{
Statement
}
What is the approach ( break a complex program into small, manageable pieces ) known as?
What is the general terms for breaking down a program to smaller units of code known as?
List out 2 parts for method definition
Where method header appears and indicate what?
What is the difference between a void method and a normal method?
What is a void method?
What is the method body?
List out the 4 parts of a method header
What is the access modifier? What value is available?
What is the difference between private and public method?
What does return type specifies?
What is a method name?
What does a method’s name always followed by?
How to create and display a method?
private void goButton_Click(object sender, EventArgs e)
{
MessageBox.Show(“This is the goButton_Click method.”);
DisplayMessage();
}
private void DisplayMessage()
{
MessageBox.Show(“This is the DisplayMessage method.”);
}
What is return point?
What will happen when the method ends?
What does the system needs to know when calling a method?
What techniques that the programmer commonly use to modularize a program?
What does a top-down design does?
List out the process for top-down design ( 3 )
What is an argument?
What is a parameter?
What does string parameter accepts?