Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Object-Oriented Programming in ColdFusion

You're reading from   Object-Oriented Programming in ColdFusion Break free from procedural programming and learn how to optimize your applications and enhance your skills using objects and design patterns

Arrow left icon
Product type Paperback
Published in Oct 2010
Publisher Packt
ISBN-13 9781847196323
Length 192 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Matthew Gifford Matthew Gifford
Author Profile Icon Matthew Gifford
Matthew Gifford
Arrow right icon
View More author details
Toc

Chapter 3. Building Your First Bean

Following the code and examples included in the previous two chapters, we now have a fairly good understanding of what a ColdFusion component is, how to write one, how to create an object, and how to use the methods included within the CFC.

Object-oriented programming is a form of programming paradigm that utilizes "objects", structures of data that consist of data fields and methods, and the object interactions for development.

Focusing on data rather than processes, the OOP methodology uses self-sufficient modules (the objects), which contain all the information they require to manipulate their own data structure.

In this chapter, we will look at the first ColdFusion component within the OOP design pattern, the Bean.

We will also cover the following topics:

  • What is a Bean?

  • The benefits of using a Bean

  • The requirements for a Bean

  • Setting and retrieving values from the Object

What is a Bean?

Although the terminology evokes the initial reaction of cooking ingredients...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image