the class double doesn't have a method transerIn
you'll need an instance of the class you're working in, and
use a method of this:
// create an instance
instance.transferIn(transfer);
stultuske
Industrious Poster
4,382 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 24
try:
new transferIn(transfer);
new transferIn(..)?
it's not a constructor :)
stultuske
Industrious Poster
4,382 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 24
yup i changed already,see my editedt post:P. lol. but fast eyes stultuske
ever heard of Lucky Luke, the (comic) cowboy supposedly shoots faster than his shadow?
I'm from the same country dude ;) :D
stultuske
Industrious Poster
4,382 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 24
stultuske
Industrious Poster
4,382 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 24
can you post your entire code?
stultuske
Industrious Poster
4,382 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 24
you don't have a default constructor there, only one that takes a double as parameter.
so, try
double initialAmount = // set your initial Amount;
GiroAccount myAccount = new GiroAccount(initialAmount);
or add a default constructor (one that doesn't take a parameter) to your class
stultuske
Industrious Poster
4,382 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 24