Solved

A New Method, GetMonthName, to Get the Name of the Date's

Question 59

Multiple Choice

A new method, getMonthName, to get the name of the Date's month ("January", February", etc.) is to be added to the class Date.The Date class already has a class variable that stores the month as an integer.Which of the following headers should the new method have?


A) public String getMonthName(int month)
B) public String getMonthName()
C) public void getMonthName(String monthName)
D) public void getMonthName(int month, String monthName)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions