Flashcards
Methods

Flashcards do conjunto (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
Informações
- Descrição
- Masters Programming I FlashCards sobre Methods, criado por nhunsdale02 em 04-06-2014.
- Criado por
- nhunsdale02
- Visualizações
- 16
- Avaliação