Solved

We Want the ToString Method to Return Strings Like 3/16/2014

Question 106

Multiple Choice

We want the toString method to return strings like 3/16/2014.Give the body of the toString method.


A) return "m/d/y";
B) return month + "/" + day + "/" + year;
C) return m + "/" + d + "/" + y;
D) return "month/day/year";

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents