Amdocs interview question

Explain how inheritance works, along with example and implementation on paper. Following that a bigger assignment to code.