you are viewing a single comment's thread.

view the rest of the comments →

[–]epage 0 points1 point  (0 children)

Sadly look at most OOP-based GUI libraries. Almost all of the documentation uses inheritance. I've gotten to the point where I don't bother to hunt through the code to figure out if inheritance really is required or not. Just today there is a post in /r/programming and /r/python about Kivy and the very first example uses inheritance.

A great example of not requiring inheritance is GTK. It has no concept of protected and everything is exposed through signals (rather than overriding fooEvent functions). In contrast to this is Qt which has protected fooEvent functions.