Invoking your methods is straightforward—you simply type the name of the method, followed
by parentheses. If your method returns data, you have the option of using the data it
returns or just ignoring it:
// This call is allowed. MyMethodNoReturnedData();
// This call is allowed. MyMethodReturnsData();
// This call is allowed. int myNumber; myNumber = MyMethodReturnsData();
No comments:
Post a Comment