The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

winsonkwok (7) [Avatar] Offline
#1
Miss the amount field of invoice class and the getAmount() function in p31

class Invoice {
private double Amount;

public double getAmount() {
return Amount;
}
...
aslam.khan (50) [Avatar] Offline
#2
Re: Missing field in invoice class
Amount is not that important in this example. However, since it did introduce some confusion, I will look at how to alert everyone to code that should be inferred or deliberately left out because it will add noise.