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
5,050 Points
BankAccount = Class.new

1 Answer

Shanay Murdock
Shanay Murdock
13,467 Points

Class needs to be all lower case.

imanewbie
imanewbie
5,050 Points

Class is always upper case