public static void main(String[] args) 
    {
        DogDemo dog1 = new DogDemo("Max", "Lab", 2, 1234);
        DogDemo dog2 = new DogDemo("Fido", "Lab", 2, 1234);
        
        if(dog1.equals(dog2))
        {
            System.out.println("Dogs are EQUAL");
        }
        else
        {
              System.out.println("Dogs are NOT EQUAL");          
        }
    }