Ask Question
19 January, 11:15

Assume the availability of class named DateManager that provides a static method, printTodaysDate, that accepts no arguments and returns no value. Write a statement that calls printTodaysDate.

+5
Answers (1)
  1. 19 January, 11:41
    0
    Hi!

    The answer is:

    DateManager dm = new DateManager (); / / Instanciate.

    dm. printTodaysDate; / / Calls the method.

    Explanation:

    If you are working on object-oriented programming, then:

    First, you have to instanciate the class DataManger. Then, you can call printTodaysDate on the instance dm of DataManager.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Assume the availability of class named DateManager that provides a static method, printTodaysDate, that accepts no arguments and returns no ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers