Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Tracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsVisual Basic User
Hello,
If there is anyone out there who uses VB and wouldn't mind answering a few quick questions, for me for an assignment I am doing, it would be much appreciated.
Is inheritance generally understood by computer programmers? Is it widely used? When might it be used? What limitations, if any, restrict its’ use?
Thank you.
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! As far as I know, all OOP programming languages use inheritance. So, yes, it is a widely understood concept by programmers at large. Examples of OOP programming languages are Java, C++/C#, Objective C/Swift, and Visual Basic If you want to learn about both OOP and design patterns, I'd recommend reading "Design Patterns Explained" by Alan Shalloway and James R. Trott.
There are many who will say that when inheritance is too deep it creates code that is hard to follow and thus, hard to maintain. There are some who say that this defeats/breaks encapsulation.
Hope this helps!
Tracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsTracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsThank you for your time, it is much appreciated.