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!