Northrop Grumman interview question

c++ inheritance vs composition difference