• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test infected

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got stuck when trying to recriate this article.
At a certain point author introduces class MoneyBag (so far ok) and in its constructors has:

and right after states:
The method appendMoney is an internal helper method that adds a Money to the list of Moneys and takes care of consolidating Monies with the same currency.

Well, without method's implementation i think i cant advance in article.
Is there something i'm missing? Because i'd really love to get infected
thanks in advance
[ March 09, 2005: Message edited by: miguel lisboa ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that's a method name mismatch between "appendMoney(Money)" and "add(Money)"
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm not sute that's the case, since:

BTW thanks for answering
[ March 09, 2005: Message edited by: miguel lisboa ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by miguel lisboa:
Well, without method's implementation i think i cant advance in article.
Is there something i'm missing? Because i'd really love to get infected


Yes, the implementation is missing from the article. I guess that's the perfect opportunity to get your hands dirty and try to come up with it yourself. It's not that hard if you do it step by step, and we are here to help you should you get stuck.
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess that's the perfect opportunity to get your hands dirty and try to come up with it yourself. It's not that hard if you do it step by step, and we are here to help you should you get stuck.

thanks for that; i tried till the point of creating an addMoney method, but later i gave up; in the meanwhile i'm busy with my persistence tests - i only code in my spare time. anyway sure i'll give it a shot later
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic