![]() A method takes parameters.Īrguments are the things you pass into the methods. ![]() So you can call them whatever you like (arguments, donuts, hairballs, etc.) but we’re doing it like this:Ī caller passes arguments. Although there are formal computer science distinctions that people who wear lab coats (and who will almost certainly not read this book) make, we have bigger fish to fry in this book. You might, for example, want to tell a Dog object how many times to bark by calling: d.bark(3) ĭepending on your programming background and personal preferences, you might use the term arguments or perhaps parameters for the values passed into a method. Just as you expect from any programming language, you can pass values into your methods. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |