Upgrade to access all content for this subject
When designing a class, which of the following would be the BEST reason for making a method private?
When you do not want other programmers to change the method’s code.
When the method needs to be called from another class.
When the method returns a value that is helpful in other classes.
When the method is only useful in the class it is defined in.
When the other methods in the class are defined as private.