SMSPortal interview question

Explain what is meant by “prefer composition over inheritance”