View Single Post
  #1 (permalink)  
Old April 13th, 2011, 04:35 PM
thelemur thelemur is offline
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Lesson 5 exercises.

Maybe I'm missing something, but I'm not sure I'm following the steps in the Try It section.

Step 1 says to copy TestTax from Lesson4 and Tax from lesson 3. This means I'm using a TestTax class that tries to employ a 3 argument constructor to create a new Tax instance, while the Tax class has no declared constructor. Doing these copies causes Eclipse to give me a number of compile errors in TestTax.

Step 2 says to remove three lines, presumably from TestTax because Tax doesn't have any lines declaring any values, but the step doesn't specify.

Step 3 says to "add the following code fragment" but doesn't say in which class or where in those classes. I get the concept of an If statement (I've used other languages) but I'm not sure where to put this.

I haven't proceeded further because I'm very unconfident that I'm doing any of this right. Can I get some clarification?
Reply With Quote