I don't get what I'm doing wrong here on the part of assigning the woman as the owner. The concept is a little dry and I don't understand it.
package com.codegym.task.task02.task0213;
/*
Pets need people
*/
public class Solution {
public static void main(String[] args) {
//write your code here
Cat newCat = new Cat();
Dog newDog = new Dog();
Fish newFish = new Fish();
Woman newWoman = new Woman();
Cat.owner = newWoman;
Dog.owner = newWoman;
Fish.owner = newWoman;
}
public static class Cat {
public Woman owner;
}
public static class Dog {
public Woman owner;
}
public static class Fish {
public Woman owner;
}
public static class Woman {
}
}