Ask Question
16 March, 10:45

Assume the availability of class named Date Manager that provides a static method, print Todays Date, that accepts no arguments and returns no value. Write a statement that calls print Todays Date?

+4
Answers (1)
  1. 16 March, 13:23
    0
    DateManager. printTodaysDate ();

    Explanation:

    As class named "DateManager" which will call the "printTodaysDate () " static function. Static method are those who are accessed by the classname not by the object.

    As printTodaysDate (); is a static method it means it cannot hold non static data. It hold only the static data, We cannot used super keyword in the printTodaysDate (); function. So the statement DateManager. printTodaysDate (); calls print Todays Date.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume the availability of class named Date Manager that provides a static method, print Todays Date, that accepts no arguments and returns ...” 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