You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...)
The text was updated successfully, but these errors were encountered:
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...)
The text was updated successfully, but these errors were encountered: