A lot of you should be already using inheritance in your projects.
But have any of used inheritance, in situations not often considered.
For example;- Form Inheritance
Public Class UI_StandardUser Inherits System.Windows.Form End Class
Public Class UI_AdminUser Inherits UI_StandardUser End Class
The form UI_AdminUser, has all of the buttons and controls of the UI_StandardUser form, but now can extended to have controls specific to the role of Admin.
What are thoughts about using Inheritance in this way? Have you use it in your code?
What are the Pros? What are the Cons?

New Topic/Question
Reply



MultiQuote








|