- ColdFusion 9 Developer Tutorial
- John Farrar
- 258字
- 2021-08-05 16:16:38
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 at the same time along with validation logic or other processing.
- We learned how to connect to a database in order to pull information back through an object.
- We learned about a new variable structure called a query to hold data recordsets.
- We learned how to return multiple types of variables back from object methods.
- We learned to declare all internal method variables that are specific to a method with a leading
var
. This is the key to making sure that our processing remains thread-safe.
推薦閱讀
- 性能測試從零開始
- 斯科特·凱爾比的零基礎攝影后期課 Lightroom數碼照片調修技法
- UG NX 12.0實例寶典
- Premiere CC視頻編輯入門與應用
- PowerPoint 2016實戰從入門到精通(超值版)
- Power Query從入門到精通
- IBM WebSphere eXtreme Scale 6
- Oracle 11g Streams Implementer's Guide
- ASP.NET Core 3從入門到實戰
- 中文版Photoshop CC基礎教程
- 從零開始:Indesign CC 2019設計基礎+商業設計實戰
- 數碼攝影修圖師完全手冊(第2卷)
- Photoshop+Firefly從入門到精通
- Excel 2010數據處理與分析立體化教程
- VRP12虛擬現實編輯器標準教程