Shell interview question

Inheritance explain with an example? Time complexities on Data structures