Help 6/7


#1

I need help with 6/7 I don't know what to do


#2

Please provide your code.


#3

I said I don't know what to do.


#4

The instructions seem pretty straight-forward:

Last step: create an instance of your Account class called checking_account. Give it whatever name and starting balance you like!

If there's something you need explanation on, feel free to ask and we'll discuss it.


#5

Creating an instance means invoking the .new() method on a class:

Eg.

checking_account = Account.new("Wee Gillis",1_000_000)

If we study the initialize method of the Account class we see it takes two parameters, a name, and a balance. Now using the syntax illustrated above, go about creating your own instance.


#6

I have one confusion it says " The :name and :balance attributes should be readable (but not writeable!)." what does that mean as through out the course we are changing the values of these attributes, also we can change name “Eric” to whatever we want.
Thanks