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().
Found a bit of misleading info on page 213 of the paperback version of the book. It goes like this:
Ruby actually calls this method
initialize()
, notinit()
.