Ruby Ruby Objects and Classes Build a Bank Account Class Create a BankAccount Class

Robert Jenkins
Robert Jenkins
4,146 Points

Im asked to create a new empty class called BankAccount. I type in Class BankAccount end I get syntax error

Any help would be appreciated :)

bank_account.rb
Class BankAccount

end
imanewbie
imanewbie
9,151 Points
BankAccount = Class.new

1 Answer

Shanay Murdock
Shanay Murdock
15,821 Points

Class needs to be all lower case.

imanewbie
imanewbie
9,151 Points

Class is always upper case