java methods can be out of a class
<p>I have this question on a homework assignment:</p>

<blockquote>
  <p>The method <code>foo()</code> defined in the class <code>Quiz</code> has the following signature: <code>public static double foo(double f)</code>. What can you say about <code>foo()</code>?</p>
  
  <ol>
  <li><p>It is a class method</p></li>
  <li><p>It is an instance variable</p></li>
  <li><p>It is an instance method</p></li>
  <li><p>It is a class attribute</p></li>
  </ol>
</blockquote>

<p>I am thinking it is a class method because <code>foo()</code> is declared in a class. Is the answer as straight-forward as I think?</p>
