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

Misleading note about Ruby on page 213 #999

Open
isabanin opened this issue Sep 7, 2021 · 0 comments
Open

Misleading note about Ruby on page 213 #999

isabanin opened this issue Sep 7, 2021 · 0 comments

Comments

@isabanin
Copy link

isabanin commented Sep 7, 2021

Found a bit of misleading info on page 213 of the paperback version of the book. It goes like this:

Languages have a variety of notations for the chunk of code that sets up a new object for a class. C++, Java, and C# use a method whose name matches the class name. Ruby and Python call it init().

Ruby actually calls this method initialize(), not init().

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