Ask Question
25 November, 13:35

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. 25 November, 14:42
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers