Create 3 Dog objects.
Store each instance in a separate variable.
Give them the names "Max", "Bella", and "Jack".
package com.codegym.task.task02.task0209;
/*
Max, Bella, and Jack
*/
public class Solution {
public static void main(String[] args) {
Dog dog1 = new Dog();
dog.name = Max;
//write your code here
Dog Bella = new Dog();
dog.name = Jack;
Dog Jack = new Dog();
dog.name = Bella;
}
public static class Dog {
public String name;
}
}