C#C
C#3y ago
Sygmond

❔ Inheritance Tricky Question

If ListPage and DetailPage have TitlebarButtons but also other buttons outside of the titlebar... than ListPageButtonSettings and DetailPageButtonSettings should inherit TitlebarButtonSettings or TitlebarButtonSettings should be a property inside of ListPageButtonSettings and DetailPageButtonSettings?

Someone told me that a class should not inherit another class if the parent class is not of the same nature, like in my case, ListPageButtonSettings is not a TitlebarButtonSettings and it contains other button settings not related to titlebar.
Was this page helpful?