Mark Weinberg3,002 Points
Initialize a variable called address_book set to a new instance of the AddressBook class.
I am having trouble with Challenge Task 1 of 2 which is Initialize a variable called address_book set to a new instance of the AddressBook class. I put in my code down below but I'm not sure what is wrong. Can someone show me the correct code to this challenge?
contact = Contact.new contact.first_name = "My" contact.last_name = "Name" class AddressBook def initialize address_book end end
Kevin Korte28,070 Points
The class AddressBook has already been created, so all it wants you to do is to create a new variable called
address_book and make it equal a
Much like the very first line they have you with the contact example.
Sean Flanagan33,219 Points
Hi Mark. I agree with both Kevin and Margeaux (thank you both). I tried creating an AddressBook class myself and it wouldn't pass. Since this class already exists, you just need to create a new instance of the class. Good luck. :)