Chapter 10: Problem 4
What are public methods? What are private methods?
Short Answer
Expert verified
In summary, public methods are accessible from anywhere within the program and serve as an interface for interaction with the class, while private methods are only accessible within the class and are used for internal tasks and functions. The key difference between these two types of methods lies in their accessibility.