Ask Question
18 August, 00:19

Which of the following is not true about designing classes? In order for class information to be printed instead of a memory address, a toString method should be declared. The constructor must be declared as public. All class variables should be declared as private. To test for equality the programmer should define an equals method. All methods should be declared private.

+2
Answers (1)
  1. 18 August, 03:29
    0
    ' All methods should be declared private ' is not true for classes. One should be able to change the properties of objects, and to do this safely and in a controlled manner, some public methods are declared. Some private methods can also be declared for more potentially sensitive operations for being called from within the class.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following is not true about designing classes? In order for class information to be printed instead of a memory address, a ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers