Solved

When Creating a ToString Method to Return a String Representation

Question 10

Multiple Choice

When creating a ToString method to return a string representation of the data stored in an object, you must __________.


A) override the ToString method, which is inherited from the built-in Object class
B) add a Protected ToString method to the class
C) do nothing as the ToString method automatically performs this for each class
D) a ToString method is a reserved word that cannot be added to a class

Correct Answer:

verifed

Verified

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

Related Questions