Is this bad practice? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is this bad practice?

Overriding an attribute from a superclass in the subclass seems like it could cause confusion while debugging. Is this considered something to avoid unless there's no other way to accomplish the desired behavior?

18th Dec 2017, 12:42 AM
Nathaniel Bourell
Nathaniel Bourell - avatar
1 Answer
+ 2
ya true but partially
18th Dec 2017, 2:04 AM
Akshay Gaigole
Akshay Gaigole - avatar