Foxconn interview question

how to implement inheritance in python? what is polymorphism?