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



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

Answer / 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

More Embedded Systems AllOther Interview Questions

Explain what is interrupt latency? How can you reduce it?

1 Answers  


Explain scope of static variables?

1 Answers  


what are buses used for communication in embedded system?

1 Answers  


Tell me what is the function of simple thread poll in embedded system?

1 Answers  


Which parameters decide the size of data type for a processor?

1 Answers  


Tell me what does dma address will deal with?

1 Answers  


Tell me when one must use recursion function? Mention what happens when recursion functions are declared inline?

1 Answers  


As you know a vast majority of high performance embedded systems today use risc architecture why?

1 Answers  


Tell me what are the different types of buses used by the embedded systems?

1 Answers  


what is the difference between embedded systems and the system in which rtos is running?

1 Answers  


Tell me what is isr?

1 Answers  


How does the interrupt architecture works?

1 Answers  


Categories