OpenTable interview question

What is the difference between inheritance and composition?