Using inheritance requires the keyword extends and, because a subclass receives all of the public and protected fields and methods from the super class, it helps avoid rewriting code.