Open Adedee opened 8 years ago
Use proper naming: https://github.com/Adedee/ruby/blob/master/Exercise5/lib/Customer.rb#L5 https://github.com/Adedee/ruby/blob/master/Exercise5/lib/Customer.rb#L23 https://github.com/Adedee/ruby/blob/master/Exercise5/lib/Customer.rb#L25 ...and others.
Also indent properly.
Instead of https://github.com/Adedee/ruby/blob/master/Exercise5/bin/main.rb#L18 and https://github.com/Adedee/ruby/blob/master/Exercise5/bin/main.rb#L25, why not use unless?
Name files in lower cases
https://github.com/Adedee/ruby/commit/e779041d3a81487ebc28b2b6f9ca4074d6292772 Define a class Customer having three variables "name","account_no" & "balance". It must initialise the class object with the name of the customer, auto-increment the account no and set balance to 1000. Define methods deposit() and withdraw() for this class.