Ask Question
7 November, 10:11

printTodaysDate is a method that accepts no arguments and returns no value. Write a statement that calls printTodaysDate. Assume that printTodaysDate is defined in the same class that calls it.

+3
Answers (1)
  1. 7 November, 12:19
    0
    printTodaysDate ();

    Explanation:

    A method or function is called in programming languages like java by typing the method's name followed by a pair of parenthesis and a semi-colon to end the statement. The parenthesis will contain the parameters if the method accepts argurments when called.

    For the example in this question, the method printTodaysDate (), accepts no arguments. It is important also to note that if a method returns a value, then it can be called and assigned to a variable, for example if printTodaysDate were to return a value then it could also have been called like this: todaysDate=printTodaysDate ();
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “printTodaysDate is a method that accepts no arguments and returns no value. Write a statement that calls printTodaysDate. Assume that ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers