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
BankAccount = Class.new

1 Answer

Shanay Murdock
Shanay Murdock
17,568 Points

Class needs to be all lower case.

Class is always upper case