This technique is disfavored for "composition" according to the composition reuse principle.
In a book about "design heuristics," Arthur Riel suggested that engineers at most only use this technique "seven plus or minus two" times when constructing hierarchies. The software engineer Steve McConnell recommended only using this technique when the Liskov Substitution Principle is not violated. This technique is disfavored for "composition" according to the composition reuse principle. In general, this technique is often used to follow the "open-closed principle," which states that modules should be open for extension but closed for changes. "Protected" attributes can be accessed by objects created through this technique, but "private" ones cannot. Along with encapsulation and polymorphism, this technique is a key component of object-oriented programming. For 10 points, name this technique that allows computer programmers to create derived classes from base classes.
In a book about "design heuristics," Arthur Riel suggested that engineers at most only use this technique "seven plus or minus two" times when constructing hierarchies.
inheritance [or inheriting; accept word forms; accept creating a derived class or word forms until "derived" is read; prompt on object-oriented programming or OOP until "object-oriented" is read]