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.

Respuesta :

Answer:

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.