Hi.
If you have the whole
Java API to look around examples of inheritance and polymorphism. Alls classes derive from java.lang.Object (inheritance). Some of them override methods like
toString,
hashCode, and others (polimorphism). Take a look at class java.lang.String, for example.