Flashcards
Methods

Cards in this deck (9)
- 1Methods DefineA collection of statements that are grouped together to perform an operation
- 2Methods What is the method signature?The method name and parameter types
- 3Methods What is the format of a method header?

- 4Visibility What are the 3 visibilities and what do they mean?- Public - Allows any other class to access the method
- Private - Hides method from other classes
- Protected - Lets subclasses use the method - 5Static What does it mean?You can call a method with "Static" in another class without first creating an instance of it
- 6Return Type What is this and what is "void"? Give an example of an intStates what the method will be returning(e.g. int, double). You will have to include a return statement in the method
If it is void, this means that the method will not return anything
public int age(int num1){
...
return num1;
} - 7Method-name Does it start with a lower case or an uppercase letter?lowercase
- 8Methods Which method is the starting point for most all applications?Main
- 9What is parameter passing?Passing a value into a parameter
Information
- Description
- Masters Programming I Flashcards on Methods, created by nhunsdale02 on 04/06/2014.
- Created by
- nhunsdale02
- Views
- 16
- Rating