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

Mindmap

Interfaces

John Hair Englisch

Inhalt der Mindmap

Interfaces

  1. Can only contain Constants and Method Headers(abstract methods with no code body)

  2. Converting between classes and interface types

    • You cannot give an object a interface type value, but it can have the type of the interface.
  3. Implementing an interface

    • When a class implements an interface, it must use the implement keyword. Also it must write the code for the abstract methods the interface requires the class to have.
  4. Polymorphism

    • The term "polymorphism" comes from the Greek words for "many shapes". The same computation works for objects of many shapes, and adapts itself to the nature of the objects.
    • Denotes the ability to treat objects with differences in behavior in a uniform way
    • You can not cast up to the child class of a class, but you can cast down to a parent class of the class. If the parent class is "Person" and the child class is "Student", a Student object can become a Person object, but a Person object can not become a "Student" object.

Informationen

Beschreibung
Mindmap am Interfaces, erstellt von John Hair am 03/05/2018.
Erstellt von
John Hair
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck