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

Advantages of inheritance(Level 4) #12

Closed
theodoreleebrant opened this issue Aug 16, 2020 · 1 comment
Closed

Advantages of inheritance(Level 4) #12

theodoreleebrant opened this issue Aug 16, 2020 · 1 comment

Comments

@theodoreleebrant
Copy link

What is the inherent advantage of using inheritance instead of, let's say, enums for the type of tasks in Level 4? As I see it, using inheritance introduces certain inflexibilities (e.g. having a need to add new classes to create any further type of task) as compared to enums. Additionally, enums might have some advantages in pattern-matching (although Java being Java...)

@theodoreleebrant
Copy link
Author

Actually now that I think again about it, they might have differing behaviours in the future...

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

No branches or pull requests

1 participant