GoConqr has a new look! Let us know what you think.

Flashcards

Methods

nhunsdale02 Programming I Masters English 9 cards

Methods

Cards in this deck (9)

  1. 1Methods DefineA collection of statements that are grouped together to perform an operation
  2. 2Methods What is the method signature?The method name and parameter types
  3. 3Methods What is the format of a method header?Methods What is the format of a method header?
  4. 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
  5. 5Static What does it mean?You can call a method with "Static" in another class without first creating an instance of it
  6. 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;
    }
  7. 7Method-name Does it start with a lower case or an uppercase letter?lowercase
  8. 8Methods Which method is the starting point for most all applications?Main
  9. 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

Feedback

What is it about?

What do you think of the new look?

How do you like it?