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

Karteikarten

Abstract

BLU BLU Deutsch 3 Karten

Karten in diesem Stapel (3)

  1. 1Ways to achieve AbstractionIn Java abstraction is achieved by interfaces and abstract classes
    - Interface An Interface in Java is a blueprint of a class. It has abstract methods (i.e. methods without body) only.
    Keyword: interface
    ------------
    Abstract class
    A class which has both abstract (i.e. methods without body) and non abstract methods.
    Keyword: abstract
  2. 2Few points to be noted about abstract- If a class have one abstract method then class should be abstract
    - Abstract methods should be implemented in the subclass
    - Cannot be instantiated using new keyword
    - Subclass does not implement all abstract method then subclass should be abstract
    Can use abstract class reference to achieve runtime polymorphism
  3. 3—

Informationen

Beschreibung
Karteikarten am Abstract, erstellt von BLU BLU am 24/01/2025.
Erstellt von
BLU BLU
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck