What are the entities called that are used to house methods?
2.
True or False: To access methods in a class module, you must first create an object.
3.
Data that has been passed into a method by a calling statement is called a _____?
4.
To pass multiple arguments to a method, separate them with a _____?
5.
The situation in which a method or set of methods continue to call each other in a looping fashion is called?
Answers
1.
Classes
2.
False. If the method is declared as a static member, you do not need to instantiate an object to call the member.
3.
Parameter.
4.
Comma.
5.
Recursion.
Exercises
1.
Create a method as part of a form that accepts one string and outputs a different string. Add code to the TextChanged() event of a text box to call the procedure, passing the contents of the text box as the argument.
2.
Create a single method that calls itself. Call this method from the Click() event of a button and observe the resulting error.