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

Зміст курсу

Java Extended

Java Extended

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

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.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 5. Розділ 2
toggle bottom row

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.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 5. Розділ 2
toggle bottom row

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.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Завдання

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.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 5. Розділ 2
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt