CTS interview question

Similarity between inheritance and polymorphic.