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

Mindmap

Class Data and Methods

lucy copp Advanced Programming Englisch

Inhalt der Mindmap

Class Data and Methods

  1. Static member of a class do not belong to any instances of the class

    • There will only ever be one of the static members no matter how many instances of the class are made
  2. You define the static variable OUTSIDE the classes declaration

    • Cannot access any non static members in the class
  3. Why are static members useful?

    • Lifetime is the same as the lifetime of the program
    • You can access the members before any initialisations have been made

Informationen

Beschreibung
Advanced Programming Mindmap am Class Data and Methods, erstellt von lucy copp am 18/05/2017.
Erstellt von
lucy copp
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck