Shell Interview Question

Inheritance explain with an example? Time complexities on Data structures