adspace


What elements of oo design are most prone to abuse? How would you mitigate that?

Answer Posted / Rajnish Kumar Mahiwal

Object-oriented design can be prone to overuse of inheritance, which can lead to tight coupling and fragile class hierarchies. To mitigate this, favor composition over inheritance, implement interfaces instead of subclassing, and use dependency injection for looser coupling. Liskov substitution principle should also be followed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is your experience with qa engineering?

928


Would you call yourself a craftsman (craftsperson) and what does that word mean to you?

930


Tell me about some of your hobby projects that you've written in your off time.

975


Are you still writing code? Do you love it?

864


What software languages have you used to design, develop, and debug software application interfaces?

944