Domanda di colloquio di u-blox

What is polymorphism, inheritence, encapsulation? Demonstrate with an example.