GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Methods

nhunsdale02 Programming I Masters Englisch 9 Karten

Methods

Karten in diesem Stapel (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

Informationen

Beschreibung
Masters Programming I Karteikarten am Methods, erstellt von nhunsdale02 am 04/06/2014.
Erstellt von
nhunsdale02
Aufrufe
16
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck