June 2017
Beginner
330 pages
7h 30m
English
Now, coming back to the types of methods provided by classes, the send_sms method is a public method. This means that anyone working on our class can communicate with this method. This may not seem like a big deal if you are working on an application that no one else is working on. However, if you build an API or code library, it's vital that your public methods represent elements of functionality that you actually want other developers to use.
Public methods should rarely, if ever, be altered. This is because other developers may be relying on your public methods to be consistent, and a change to a public method may break components of their programs. Imagine if you developed the Google Maps API and you built ...
Read now
Unlock full access