Rules Cube Interview Question

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