DRY means avoiding repeated knowledge or logic. Repetition creates opportunities for mistakes and inconsistencies: a correction may reach one copy but not another. section 4.1.3
In Python object-oriented design, inheritance applies DRY by placing shared attributes and behavior in a parent class. Child classes inherit that foundation while adding or modifying specialized behavior. section 4.1.3
Sharing shape behavior
A Shape class can provide common state, while Rectangle, Square, and Circle reuse that structure and implement their own drawing details. Square delegates shared initialization to Rectangle with super(). section 4.1.3









