Welcome to the Treehouse Community
Looking to learn something new?
"Wrong number of arguments (2 for 0)"
When I attempt to pass my code to the interpreter I get "wrong number of arguments (2 for 0)". My code follows:
def self.create_for(first_name,last_name) @accounts ||=  @accounts << BankAccount.new(first_name,last_name) end def intialize(first_name, last_name) @balance = 0 @first_name = first_name @last_name = last_name end def deposit(amount) @balance += amount end def withdraw(amount) @balance -= amount end
I thought I had followed the example in the video but I must be missing something. I would appreciate any help.
John O.4,680 Points
def intialize(first_name, last_name)
def initialize(first_name, last_name)
O wow. I appreciate the help.