employer cover photo
employer logo
employer logo

Source Intelligence

Is this your company?

Source Intelligence interview question

Which would you prefer: composition or inheritance?

Interview Answer

Anonymous

4 Feb 2016

I prefer composition over inheritance - one of the design principles of OOP. I also find it easier to re-use code and it's easier for the developer to digest.