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

Contenuti del Corso

Java Extended

Java Extended

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

book
Challenge: Pet and Owner Relationship

Compito

Swipe to start coding

  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.

Soluzione

java

solution

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 5. Capitolo 2
toggle bottom row

book
Challenge: Pet and Owner Relationship

Compito

Swipe to start coding

  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.

Soluzione

java

solution

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 5. Capitolo 2
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt