Skip to content
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

Open
wants to merge 18 commits into
base: th/master
Choose a base branch
from
Open

Th/master #65

wants to merge 18 commits into from

Conversation

TammyHer
Copy link

Finished wave 3 - including optional

person_city = person_array[4]
person_state = person_array[5]
owner = {id: person_id,
last_name: person_last_name,

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)

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.

@kariabancroft
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants