Ask Question
3 September, 01:41

Making a class's instance variables public and its methods private and accessing those instance variables only through the class's methods and properties facilitates debugging, because problems with data manipulations are localized to the methods

A. True

B. False

+5
Answers (1)
  1. 3 September, 03:50
    0
    False

    Explanation:

    The reason is that it should be the opposite. The class's instance variables should be private, and its methods should be private. In that way, only these methods can access to the private variables. For example, you have a class named Person and a variable called ssn (social security number). It is better to make this ssn variable private (It is actually a private information for a person) so that it cannot be read or modified outside of your class.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Making a class's instance variables public and its methods private and accessing those instance variables only through the class's methods ...” 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