Зміст курсу
Java Extended
Java Extended
Pet and Owner Relationship Challenge
Завдання
- In the
main
method, create aPet
object calledGarfield
. - Create an
Owner
object namedBob
. Assign Bob as the owner ofGarfield
. - Create a
Pet
object namedBen
. - Create an
Owner
object namedAlice
. AssignAlice
as the owner ofBen
. - (Optional) You can also create your own pet and owner if you'd like.
Дякуємо за ваш відгук!
Pet and Owner Relationship Challenge
Завдання
- In the
main
method, create aPet
object calledGarfield
. - Create an
Owner
object namedBob
. Assign Bob as the owner ofGarfield
. - Create a
Pet
object namedBen
. - Create an
Owner
object namedAlice
. AssignAlice
as the owner ofBen
. - (Optional) You can also create your own pet and owner if you'd like.
Дякуємо за ваш відгук!
Pet and Owner Relationship Challenge
Завдання
- In the
main
method, create aPet
object calledGarfield
. - Create an
Owner
object namedBob
. Assign Bob as the owner ofGarfield
. - Create a
Pet
object namedBen
. - Create an
Owner
object namedAlice
. AssignAlice
as the owner ofBen
. - (Optional) You can also create your own pet and owner if you'd like.
Дякуємо за ваш відгук!
Завдання
- In the
main
method, create aPet
object calledGarfield
. - Create an
Owner
object namedBob
. Assign Bob as the owner ofGarfield
. - Create a
Pet
object namedBen
. - Create an
Owner
object namedAlice
. AssignAlice
as the owner ofBen
. - (Optional) You can also create your own pet and owner if you'd like.