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.

UML Notation, Inheritance

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

könnte mir evtl. jemand bitte erklären, wie ich folgende Vererbungsstruktur in UML darstelle? Ich versuche gerade existierenden Code zu reengineeren, daher stellt sich mir nicht die Frage der Sinnhaftigkeit ;-)

C# Code Klassensignatur:

public class MainObjectDB : EntityObject<MainObject>, IMainObject

Mein Hauptanliegen ist das Generic Object. Hier wird ja direkt von dem typisierten Object geerbt ohne Zwischeninstanz. Dann noch die Implementation des Interfaces.

Wie bilde ich das in UML ab?

Ich habe Visio zur Verfügung.

Vielen Dank!

Oliver

Ich kann jetzt den C#-Code nicht direkt lesen, deshalb versuche ich eine Interpretation:

MainObjectDB erweitert EntityObject<MainObject> und implementiert IMainObject?

Wenn das so ist, dann geht der Vererbungspfeil von MainObjectDB zu EntityObject. EntityObject ist typisiert (Generic mit MainObject). Zusätzlich geht von MainObjectDB noch ein Implementierungspfeil zu IMainObject.

Ich hoffe, das hilft Dir weiter.

Schöne Grüße,

Peter

Hi Peter,

das hilft mir in soweit, als das ich garnicht so falsch liege.

Das EntityObject<..> typisieren ist mir aber unbekannt.

Ich google mal danach, aber vllt hast Du noch einen Tip, wie bzw. wo das darzustellen ist, das ist nämlich mein Hauptproblem.

Vielen Dank!

Geil, danke! Die Begriffe und der Link bringen mich wirlich weiter!

Problem gelöst.

:uli

Cheers!

Oliver

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.