Orientação a objectos[Resolvido]

herança

dá uma olhada: http://www.dca.fee.unicamp.br/cursos/PooJava/heranca/index.html