We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
name
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
In Scala 3 Book, under Abstract classes, the example for an abstract class that can take arguments doesn't really use the argument.
abstract class Pet(name: String): def greeting: String def age: Int override def toString = s"I say $greeting, and I’m $age"
However, the immediate example that shows "traits with parameters" use them.
I'd be happy to send a PR.
The text was updated successfully, but these errors were encountered:
That would be great @arkivm !
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
In Scala 3 Book, under Abstract classes, the example for an abstract class that can take arguments doesn't really use the argument.
However, the immediate example that shows "traits with parameters" use them.
I'd be happy to send a PR.
The text was updated successfully, but these errors were encountered: