Buscar

What is the error in the following Java code? a) The class Human should be declared as abstract. b) The class Human should override the abstract m...

What is the error in the following Java code?

a) The class Human should be declared as abstract.
b) The class Human should override the abstract method walk() in the LivingThing class.
c) The class Human should extend the LivingThing class.
d) The class Human should implement the walk() method from the LivingThing class.

Essa pergunta também está no material:

16148194-Algoritmos-e-Programacao-II-Apostila-Completa-131
1 pág.

Gestão Hospitalar Faculdade das AméricasFaculdade das Américas

💡 1 Resposta

User badge image

Ed Verified user icon

A alternativa correta é a letra D) A classe Human deve implementar o método walk() da classe LivingThing.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais