-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Th/master #65
base: th/master
Are you sure you want to change the base?
Th/master #65
Conversation
person_city = person_array[4] | ||
person_state = person_array[5] | ||
owner = {id: person_id, | ||
last_name: person_last_name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're not re-using these local variables anywhere else, it might make sense to remove the local variables and plug the person_array[1]
code directly into the hash creation
class SavingsAccount < Account | ||
|
||
def initialize (id, balance, date) | ||
super (id, initial_balance, date) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment re: default initialize method.
Nice job using the inheritance concepts to make your code clear and concise. I think there are still some things you can clean up since it seems like you have some duplicate code. |
Finished wave 3 - including optional