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

Mindmap

Classes

Zach Assid Englisch

Inhalt der Mindmap

Classes

  1. Blueprint/template

  2. Naming Convention: Capitalize the Initial of Each Word

  3. Constructor

    • Objects
      • Fields (attributes)
        • Examples for car: 1) color 2) number of tires 3) plate number 4) number of valves
        • Camel Naming Convention
      • Methods (actions)
        • Examples for car: 1) run 2) brake
        • Camel Naming Convention
      • Both fields and methods are optional
      • Creating an object: Use new keyword
        • Example: new Employee();
      • Assigning to an Object Variable: Declare an object reference with the same type as the object
        • Example: Employee employee = new Employee();
      • Call a method or field: Use a period (.)
        • Examples: objectReference.methodName objectReference.fieldName
      • Reference Variable has No Value: Use "null"
        • Example: Book book = null;
    • Every class has at least one
    • Often called "a constructor method" but does not have a return value

Informationen

Beschreibung
Mindmap am Classes, erstellt von Zach Assid am 28/05/2020.
Erstellt von
Zach Assid
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck