# Pets need people

• 3
• Locked
"You become responsible forever for what you've tamed," said Antoine de Saint-Exupery through the mouth of the Little Prince's fox friend. Let's clean up our program and not leave any animal without a caregiver. We'll create a cat, a dog, and a fish. And a woman. And then we'll assign her as the owner of the fish, dog, and cat. We think she'll like this!
You can't complete this task, because you're not signed in.
David
Level 6 , Spain
14 March, 17:24
Me estaba volviendo loco, solo tenía una variable mal escrita. Ojo con los errores .😋
Lunita
Level 4
21 December 2022, 15:56
It was pretty easy for me! I just remembered previous lessons. It's exactly what they taught. 😁
Dav
Level 2 , United States of America
27 June 2022, 15:58
completed it by trial and error and the hints in the comments. I feel that I am missing some base knowledge in my mental model of variable declaration/initialization/connection. Otherwise it would have been apparent. It is possible it is knowledge gained through repetition. Which I hope it is otherwise will be a weakness in the future. :(
Lunita
Level 4
21 December 2022, 15:57
Try reviewing previous lessons.
Jeff Kenney
Level 3 , United States
3 December 2021, 05:39
Okay, I got it. It took me a couples of tries, but when I figured it out, it's actually pretty simple. Hint: You can name each animal object whatever you want AS LONG AS the "Woman" object is listed FIRST 😉👍 Example: Cat fuzzy = new Cat(); fuzzy.owner = ownername; OR Cat.whiskers = new Cat(); whiskers.owner = ownername; See the pattern? 😉👌 Hint 2: Woman object only needs a name. Example: Woman beth = new Woman(); OR Woman sarah = new Woman();
Anonymous #10829459
Level 2 , Spain
15 October 2021, 15:46
lo primero es poner los objetos despues dejas espacio y debajo de todos los objetos poner las variables.. las tipo el perro es de la woman o dog.owner=woman... ojala les sirva yo me rompi el cerebro
Nuhazet
Level 4 , Santa Cruz de Tenerife, Spain
23 April 2022, 08:13
Estaba asignado mal la propiedad, gracias amigo! Esta no se me olvida, buena rotura de cerebro
Harvey Roberts
Level 9 , Helsinki, Finland
26 August 2021, 06:15
Cought me out six times b4 I realised I had to create the woman first. Doh!
Luke
Level 5 , Brisbane, Australia
3 April 2021, 09:32
I wish there was a way to block the pop ups after verification.
Joe M
Level 47 , Owings Mills, United States
27 August 2020, 20:49
1) create a new Woman, save with a variable name, her name 2) create a new Cat, save with the cat's name 3) catname.owner = woman's name 4) create a new Dog, save with dog's name 5) dogname.owner = woman's name 6) create a new fish, save with fish name 7)fishname.owner = woman's name That's it. don't touch anything but the main method.