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

Removed override modifer from exercise in W10 #778

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

johannesnydahl
Copy link
Contributor

image
The override modifier is not needed in this case because attributes x and y are not implemented in type Pair.

@bjornregnell
Copy link
Member

Well, it is still nice to use override so that you get help from the compiler to check if there actually is a thing called that to override...

Or do you have any specific reasons here not NOT use override, other than that it is unnecessary? @johannesnydahl

@bjornregnell
Copy link
Member

bjornregnell commented Nov 16, 2023

Perhaps if, as your commit removes override, you could then add another subtask that asks if it works with override and why it is good to use override even if it is not necessary?
@johannesnydahl

@johannesnydahl
Copy link
Contributor Author

@bjornregnell That sounds like a great idea! Will update pull request.

@bjornregnell
Copy link
Member

I'm merging this as is, but I will change it to include sub-task about override.

@bjornregnell bjornregnell merged commit c2ea3b4 into lunduniversity:master Jun 25, 2024
Copy link
Member

@bjornregnell bjornregnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should include sub-task on how override works.

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