Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
We're going to be creating a class that will approximate a bank account. In this first video, we'll lay the groundwork for our program and define the class and an internal variable.
Code Samples
class BankAccount
def initialize(name)
@name = name
@transactions = []
end
end
bank_account = BankAccount.new("Jason")
puts bank_account.inspect
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Jason Woo
11,730 PointsHi there I redid the contact_list project on my own and cannot diagnose this issue. Could you tell me what's wrong?
Posted by Jason WooJason Woo
11,730 Points4 Answers
-
nathanielcusano
9,808 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up