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

Relevance of Inheritance between User and Account classes #3

Open
aashna27 opened this issue Jul 15, 2021 · 0 comments
Open

Relevance of Inheritance between User and Account classes #3

aashna27 opened this issue Jul 15, 2021 · 0 comments

Comments

@aashna27
Copy link

aashna27 commented Jul 15, 2021

Can you please help me understand the reason why we are chosing inheritance between User and Account class. The Account class has a data member Map<String, User> contacts.

Why don't we go for UserAccount class only and eliminate having an inheritance between the two.

Also thanks for contributing great content!!

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

No branches or pull requests

1 participant