Which of the following is an example of polymorphism in OOP? Both overloading and overriding are examples of polymorphism. They are used in Java.