Summary

book list add book to my bookshelf create a bookmark purchase this book online

mastering crystal reports 9
Chapter 18 - The Object-Oriented Primer
Mastering Crystal Reports 9
by Cate McCoy and Gord Maric
Sybex 2003

Over the years since programmers have been writing programs, various techniques have evolved that allowed programmers to write code that can be shared from program to program.

The first type of code sharing was a simple library of code containing common routines that could be copied into programs. This worked well until a bug appeared in the common routine; then all the programs that used that routine needed to be recompiled.

To solve the recompilation issue, dynamic libraries of code were created. The library was precompiled and a program simply referenced the code in the library and used it. If the dynamic library changed, all programs that referenced that library were automatically updated because the code was not statically copied into the program but rather loaded dynamically when the program ran. This type of reuse was limited to code only.

Object-oriented techniques were invented that allowed both code and data to be placed in a reusable object. Since objects contain both data and code, they really have everything a program has and can represent real-life entities like customers or reports.

OO programmers introduced the following terminology to describe entities:

  • Methods describe what an object can do; methods behind the scene are subroutines and functions in the object.

  • Properties describe the characteristics of an object; behind-the-scene properties are variables and data in an object.

  • A special collection object contains references to other objects. Collections can be considered an array of objects.

  • Object model diagrams illustrate the relationship between one object and another in complex systems.

Crystal Reports exposes it functionally through objects, so it is imperative to understand OOP concepts in order to effectively use Crystal Reports in a custom application.

Use of content on this site is expressly subject to the restrictions set forth in the Membership Agreement
 
Conello © 2000-2003     Feedback


Mastering Crystal Reports 9
Mastering Crystal Reports 9
ISBN: 0782141730
EAN: 2147483647
Year: 2005
Pages: 217

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net