lindaphan5982 lindaphan5982
  • 30-01-2020
  • Computers and Technology
contestada

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?

Respuesta :

StaceeLichtenstein StaceeLichtenstein
  • 31-01-2020

Answer:

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.
Answer Link

Otras preguntas

Which relationship between the two species listed below would be mutually beneficial? A. a plant leaf and a caterpillar B. a flowering plant and a bee C. a
An individual who inherits the gene for blood type A from one parent and blood type O from the other parent will have what blood type
What is the best definition of metaphor
I can contain long fatty acid chains
If sick should you visit a specialist before going to your primary care physician
can some one hekp me please☝
Which linear inequality is represented by the graph? y ≤ x – 1.3 y ≤ x – 4/3 y ≥ x – 4/3 y ≥ x – 1.3
how do i pick any f to c in one day
How did Carroll, Reed, and Lazear assist in Cuba's progress as a nation?
what is the frame narrative of the Canterbury tales? A) pilgrims sitting around a camp fire sharing stories to pass the time B) a band of travelers sharing stor