Зміст курсу
Java Extended
Java Extended
Pet and Owner Relationship Challenge
Завдання
Your task is to complete what has been started. In the main method, create a Pet
object with the name Garfield
and create an object of the Owner
class named Bob
. Bob
is the owner of Garfield
.
Also, create an object of the Pet
class named Ben
and an object of the Owner
class named Alice
. Alice
is the owner of Ben
.
You can also create yourself and your own pet here and display it, but that is optional.
Дякуємо за ваш відгук!
Pet and Owner Relationship Challenge
Завдання
Your task is to complete what has been started. In the main method, create a Pet
object with the name Garfield
and create an object of the Owner
class named Bob
. Bob
is the owner of Garfield
.
Also, create an object of the Pet
class named Ben
and an object of the Owner
class named Alice
. Alice
is the owner of Ben
.
You can also create yourself and your own pet here and display it, but that is optional.
Дякуємо за ваш відгук!
Pet and Owner Relationship Challenge
Завдання
Your task is to complete what has been started. In the main method, create a Pet
object with the name Garfield
and create an object of the Owner
class named Bob
. Bob
is the owner of Garfield
.
Also, create an object of the Pet
class named Ben
and an object of the Owner
class named Alice
. Alice
is the owner of Ben
.
You can also create yourself and your own pet here and display it, but that is optional.
Дякуємо за ваш відгук!
Завдання
Your task is to complete what has been started. In the main method, create a Pet
object with the name Garfield
and create an object of the Owner
class named Bob
. Bob
is the owner of Garfield
.
Also, create an object of the Pet
class named Ben
and an object of the Owner
class named Alice
. Alice
is the owner of Ben
.
You can also create yourself and your own pet here and display it, but that is optional.