Rules Cube interview question

What is inheritance? What is object-oriented programming? and an example