Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Pet and Owner Relationship | Classes Advanced
Java Extended
course content

Conteúdo do Curso

Java Extended

Java Extended

1. Deep Java Structure
2. Methods
3. String Advanced
4. Classes
5. Classes Advanced

bookChallenge: Pet and Owner Relationship

Tarefa
test

Swipe to show code editor

  1. In the main method, create a Pet object called Garfield.
  2. Create an Owner object named Bob. Assign Bob as the owner of Garfield.
  3. Create a Pet object named Ben.
  4. Create an Owner object named Alice. Assign Alice as the owner of Ben.
  5. (Optional) You can also create your own pet and owner if you'd like.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 5. Capítulo 2
toggle bottom row

bookChallenge: Pet and Owner Relationship

Tarefa
test

Swipe to show code editor

  1. In the main method, create a Pet object called Garfield.
  2. Create an Owner object named Bob. Assign Bob as the owner of Garfield.
  3. Create a Pet object named Ben.
  4. Create an Owner object named Alice. Assign Alice as the owner of Ben.
  5. (Optional) You can also create your own pet and owner if you'd like.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 5. Capítulo 2
toggle bottom row

bookChallenge: Pet and Owner Relationship

Tarefa
test

Swipe to show code editor

  1. In the main method, create a Pet object called Garfield.
  2. Create an Owner object named Bob. Assign Bob as the owner of Garfield.
  3. Create a Pet object named Ben.
  4. Create an Owner object named Alice. Assign Alice as the owner of Ben.
  5. (Optional) You can also create your own pet and owner if you'd like.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Tarefa
test

Swipe to show code editor

  1. In the main method, create a Pet object called Garfield.
  2. Create an Owner object named Bob. Assign Bob as the owner of Garfield.
  3. Create a Pet object named Ben.
  4. Create an Owner object named Alice. Assign Alice as the owner of Ben.
  5. (Optional) You can also create your own pet and owner if you'd like.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 5. Capítulo 2
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt