© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
10 replies
Nectar

ELI5 : Abstract Class vs Interface

I want to create some models for ORM, and these models have some properties in common such as Id, CreatedDate, CreatedBy, etc. I want to make these properties located in the abstract and later the derived class can be inherited by the abstract class that holds these properties. it should be noted that these properties will definitely have the same implementation. I was thinking that I should implement them in an abstract class because the implementation will always be the same, but I saw a codebase that has a similar structure using an interface instead of an abstract class. so, what should I choose? abstract class or interface? any advice or a more understandable explanation of the two would be useful. thank you!
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

✅ Abstract Class vs Interface
C#CC# / help
10mo ago
❔ abstract class vs interface
C#CC# / help
3y ago
❔ abstract class virtual methods vs default implementation interface
C#CC# / help
4y ago
Abstract class functions
C#CC# / help
4y ago