title: Check if my code is correct for the following problems given?
body: <p>I am just learning Java.</p>
  <p>And I want to improve my code and answer the question below.</p>
  <p>3.Inside the main() method of Simulator , create an instance of a &quot;Cat&quot; object, and invoke that object's run() method.</p>
  <p>Does my code require additional information? I want to answer the above question and this is what I have so far:</p>
  <pre><code>class Simulator {
       
   
    public static void main(String[] args) {
       Cat c = new Cat();
      System.out.println(c);
     }
   }
  </code></pre>
  <p>Am I correct? I found the second class returns as an random integer. Will that work to invoke the run method.</p>