Summary
One of the biggest advantages of CFCs is the ability to encapsulate logic. This means that we can use the same code over and over without writing it over and over. This makes initial development better. It also makes debugging and updates much more manageable. In this chapter you have just started to get a taste of the power of objects. We will be using them often throughout the rest of this book. This chapter was meant to give you a foundation to understand what follows in the remaining chapters.
Lessons learned in Chapter 2 are:
We learned how to create object classes and instantiate object instances.
We learned how to create methods, and use the methods and method arguments to interact with objects.
We learned how to use object constructors for setting object information at the time of creation.
We learned how to use getters/setters to securely control the information inside an object. We also learned that with these methods, you can do more than just setting and getting the values...