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

Mindmap

Objects and classes

Matthew S Englisch

Inhalt der Mindmap

Objects and classes

  1. Java is an object-oriented program.

    • Objects are everywhere; they are living and nonlving.
      • Objects perform actions (methods)
  2. Need classes to create objects, they are the blueprint.

    • If Employee object only needs to work and be paid, then the class only needs these two methods.
      • Address getAddress: returns an Address object
    • Consider 3 things: the name, fields, and methods. (Structural order of a UML diagram)
      • Fields are variables
    • Main method is needed. "Public static void main(String [ ] args)"
  3. Every class must have at least one constructor. Constructors are like mthods but have no return value.

  4. Can use "new" to create an object.

Informationen

Beschreibung
Mindmap am Objects and classes, erstellt von Matthew S am 16/01/2020.
Erstellt von
Matthew S
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck