213k views
1 vote
Instead of using the automatic toString() method with your classes, it is usually more useful to write your own ____ version of the toString()method that displays some or all of the data field values for the object with which you use it.

a. overloaded
b. static
c. protected
d. condensed

User Throwit
by
4.3k points

1 Answer

1 vote

Answer:

The answer is "Option a"

Step-by-step explanation:

The overloading is the most essential aspect in the java programming This function can achieve different features with the same method term. To obtain the required information fields or entity type, the toString() function is overloaded, and the wrong choice can be defined as follows:

  • In option b, It is wrong because it is a keyword.
  • In option c, It is wrong because it is an access modifier.
  • In option d, It is wrong because it is a type of programming.
User NetHawk
by
4.1k points