Good night, I have a question about a paragraph in the book. That paragraph reads as follows:
We can do this by placing arguments inside of the constructor method.Car myCar = new Car(color(255,0,0),0,100,2);
The problem I think is that you say that we need to place arguments inside the constructor method instead of parameters. That´s confuse because you say in chapter 7 that an argument are variables that live inside the parenthesis in the function definition.
Best Regards
tonyjans
Sorry if I´m wrong let me know please
regards
Anonymous
yes, technically i think your use of the lingo is more accurate — parameters being the values passed in and arguments being the variables that receive those parameters in the function definition. I tend to use those words interchangeably but i will think about being more careful for the next version of the book!