Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Interface implementiert Interface

Empfohlene Antworten

Veröffentlicht

Hallo,

ich wollte mal fragen und zwar:

Ich habe ein Projekt mit diversen Patterns umgesetzt mit Factory und Strategy bis hin zu Template Method Pattern. Jetzt bräuchte ich ein Interface das als "Hauptinterface" gilt. Von diesem Hauptinterface brauche ich jetzt noch 3 Interfaces, welche dieses implementieren... Kann ein Interface in Java ein anderes implementieren?

MfG Rekursion

... Kann ein Interface in Java ein anderes implementieren?

Implementieren nicht, aber erben.


interface ParentInterface{  

        void myMethod();  

}  


interface SubInterface extends ParentInterface{  

        void anotherMethod();  

}

  • Autor
Implementieren nicht, aber erben.


interface ParentInterface{  

        void myMethod();  

}  


interface SubInterface extends ParentInterface{  

        void anotherMethod();  

}

Danke für die Hilfe.

Habe es gebraucht um nun eine Abstrakte klasse zu "bauen" die das SubInterface implementiert und davon eine Konkrete Ausprägung, welche die Methoden der Abstrakten Klasse implementiert. Das Problem war das ich von der Abstrakten Klasse die Methoden abstract machen muss um sie weiter zu leiten! Danke trotzdem vielmals!:)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.