When should you make a method private?
a. Should you ever change a private method to a public method?
b. Should you ever change a public method to a private one?
Make a method private if you don't think other classes need access to it.
a. Yes, you can do this if you ¯nd that other classes do need access to it.
b. No, you shouldn't do this unless you can check that no other class is using the method.
Computer Science & Information Technology
You might also like to view...
In order to start the process of hiding the taskbar, you first need to right-click an empty area of the desktop
Indicate whether the statement is true or false
Computer Science & Information Technology
An XML schema is a document with an .xsd extension that defines the elements, entities, and content allowed in the document
Indicate whether the statement is true or false
Computer Science & Information Technology