Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Interface | Section
Practice
Projects
Quizzes & Challenges
Questionários
Challenges
/
Java Object-Oriented Programming (OOP) Fundamentals

bookChallenge: Interface

Task

For you, two interfaces have been created: Human and Animal, as well as one class – Werewolf. Your task is to inherit both interfaces in the Werewolf class and then implement their methods. In the Werewolf class, the comments above indicate how you should override these methods. A werewolf is both a human and an animal, so it has a method called transform(). You should also use the boolean value isHumanForm in the methods as instructed. If the task seems difficult, feel free to use the Hint and Solution buttons to analyze the solution!

Note
Note

Do not modify the transform() method and do not edit the fields.

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 25

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

bookChallenge: Interface

Deslize para mostrar o menu

Task

For you, two interfaces have been created: Human and Animal, as well as one class – Werewolf. Your task is to inherit both interfaces in the Werewolf class and then implement their methods. In the Werewolf class, the comments above indicate how you should override these methods. A werewolf is both a human and an animal, so it has a method called transform(). You should also use the boolean value isHumanForm in the methods as instructed. If the task seems difficult, feel free to use the Hint and Solution buttons to analyze the solution!

Note
Note

Do not modify the transform() method and do not edit the fields.

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 25
some-alt