Should I share UI for objects that use common fields?

Posted by wb on Stack Overflow See other posts from Stack Overflow or by wb
Published on 2010-05-19T12:54:03Z Indexed on 2010/05/19 13:00 UTC
Read the original article Hit count: 127

I have a parent class that holds all of the fields that are common between all device types. From that, I have a few derived classes that each hold their unique fields. Say I have device type "Switch" and "Transformer". Both derived classes only have 2-3 of their own unique fields. When doing the UI design (windows forms) in this case.

Should I create two separate forms for each device type or create a user control with all fields that are shared among all devices?

Thank you.

© Stack Overflow or respective owner

Related posts about inheritance

Related posts about object-oriented-design