204k views
1 vote
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.

User JackPGreen
by
7.8k points

1 Answer

6 votes

Answer:

Hi!

The answer is:

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

dm.printTodaysDate; // Calls the method.

Step-by-step 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.
User CreepyRaccoon
by
8.0k points

No related questions found