title: create a new Object with using previous Variable of constructor
body: <p>I am creating a new Object of Attendace. The first parameter generates me random animals, that works 
   perfectly, however if i check if the random animal is a cat it still return me a false, also if its a 
   cat, what could be my mistake?</p>
  
  <pre><code> public enum Animal{
              DOG,
              CAT,
              HORSE
              }
  
              public class Attendace {
                  private Animal animal;
                  private boolean present;
                  private static int count;
  
                  public Attendace (Animal animal, boolean present) {
                      this.animal = animal;
                      this.present= present;
                  }
  
                  public Attendace() {}
  
                  public static boolean presence{
                   Attendace a = new Attendace();
                   if(a.animal == Animal.CAT &amp;&amp; count == 0){
                    ++count;
                    return true;
                   }
                   return false
                  }     
              }
  
  
              new Attendace(Animal.randomEnum(), Attendace.presence());
  
  );
  </code></pre>