© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Multiple inheritance question
C#CC# / help
3y ago
✅ Question about inheritance c# [SOLVED]
C#CC# / help
8mo ago
Inheritance
C#CC# / help
15mo ago
✅ inheritance
C#CC# / help
2y ago