Inheritance Question

1
Hello, I've been going through the Advanced Domain Modelling learning path and I have a question about the concept of Inheritance.    In the example given here --> https://academy.mendix.com/link/modules/369/lectures/2991/2.2-Why-Use-Inheritance#:~:text=In%20another%20example%2C%20a%20customer%20has%20several%20of%20the%20same%20attributes%20as%20employee%2C%20so%20it%20might%20be%20tempting%20to%20create%20an%20entity%20named%20Person%20with%20the%20specializations%20of%20Employee%20and%20Customer.%20However%2C%20you%20should%20never%20use%20inheritance%20for%20the%20sake%20of%20attributes%20alone.                                                                                                                                                Basically at the highlighted text ("In another example, a customer has several of the same attributes as employee, so it might be tempting to create an entity named Person with the specializations of Employee and Customer. However, you should never use inheritance for the sake of attributes alone. ").    https://academy.mendix.com/link/modules/369/lectures/2991/2.2-Why-Use-Inheritance   Why should you never use Inheritance for the sake of attributes alone? Considering the example given there, in the learning path, with the entities Person, Customer and Employee. What is wrong with that? Could you provide an example?  
asked
1 answers
1

Hi,

because inheritance has significant impact on the DB structure and thus on performance

https://academy.mendix.com/link/modules/369/lectures/2994/2.3-Inheritance-&-Impact-on-the-DB-Structure

regards, Fabian

answered