title: I am fairly new to Java Inheritance and I don't understand why I have an error?
body: <p>Here is the problem:</p>
  
  <p><strong>Write the class Marketer to accompany the other law firm classes described in this chapter. Marketers make $50,000 ($10,000 more than general employees) and have an additional method called advertise that prints "Act now, while supplies last!" Make sure to interact with the Employee superclass as appropriate.</strong></p>
  
  <p>The code so far:</p>
  
  <pre><code>public class Marketer extends Employee {   
  
  public Marketer() { 
          setBaseSalary(super.getSalary() + 10000.0);    
      }
  
      public void advertise() {
          System.out.println("Act now, while supplies last!") ;
      }
  }
  </code></pre>
  
  <p>This is what the output should be: </p>
  
  <p><em>50000.0</em></p>
  
  <p><em>75535.0</em></p>
  
  <p><em>Act now, while supplies last!</em></p>
  
  <p>There is a file extension called <strong>Employee.java</strong> on the following site that the code above follows:
  <a href="http://practiceit.cs.washington.edu/problem.jsp?id=1324" rel="nofollow">http://practiceit.cs.washington.edu/problem.jsp?id=1324</a></p>
  
  <p>So what I have so far, it printed out every expected outcome <strong><em>EXCEPT for 75535.0</em></strong>!
  Where did I go wrong??
  When I ran the code, it said this (for the error I had received on the 75535.0 part): </p>
  
  <p><em>(change base salary to $65535.00)</em></p>
  
  <p>because my output was 65535.0, which is 10000 less than what the answer is supposed to be.</p>
  
  <p>I can't seem to find the error since I just started to do these inheritance kind of things in Java, so I am still unfamiliar with it. Thank you if you can help me understand where I messed up.</p>