Cover image for Learn Object Pascal with Delphi
Title:
Learn Object Pascal with Delphi
Author:
Rachele, Warren.
Personal Author:
Publication Information:
Plano, Tex. : Wordware Pub., [2001]

©2001
Physical Description:
xv, 358 pages : illustrations ; 24 cm + 1 computer optical disc (4 3/4 in.).
General Note:
Includes index.

"Includes Borland Delphi 5.0 standard"--Cover.
Language:
English
Title Subject:
ISBN:
9781556227196
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Central Library QA76.64 .R33 2001 Adult Non-Fiction Central Closed Stacks
Searching...

On Order

Summary

Summary

Learn Object Pascal with Delphi provides an introduction to the popular programming language that is used as the basis for many computer science programs and a wide range of professional software development projects. The book is organized around specific programming skills, such as defining constants, creating variables, declaring types, making decisions, looping, encapsulating routines into procedures, using arrays and records, and handling files.

Among the elements that make this book perfect for beginning Delphi developers are Quick Check review questions to reinforce new concepts; Test Your Knowledge exercises for trying out newfound skills; and an appendix listing Object Pascal's reserved words.

The companion CD-ROM puts you to work immediately with the complete Delphi 5.0 Standard Edition compiler ready for installation. The CD also contains the complete source code for all of the examples; trial versions of Glad components; and a trial version of the UIL Security System from Unlimited Intelligence Limited.


Table of Contents

Dedicationp. iii
Prefacep. xi
Acknowledgmentsp. xiii
Chapter 1 Getting Started with Object Pascalp. 1
Introductionp. 1
Why Bother with Object Pascal?p. 2
A Little Historical Perspectivep. 3
What to Do, What to Do...p. 4
Getting Startedp. 7
CRT Applications with Delphip. 7
The Object Respositoryp. 8
Building the Templatep. 8
Adding the Template to the Object Repositoryp. 12
The Command Line Alternativep. 13
Compiling from the Command Linep. 15
Compiler Optionsp. 16
Moving Forwardp. 17
Chapter 2 Object Pascal 101p. 19
Introductionp. 19
Getting Startedp. 20
Object Pascal Program Structurep. 20
Building Your First Programp. 21
The Compilerp. 24
The Executable Programp. 25
Program Crashesp. 26
Tokens and Separatorsp. 28
Symbolsp. 28
Lettersp. 28
Digitsp. 28
Hex Digitsp. 28
Blanksp. 29
Identifiersp. 30
Labelsp. 31
Numbersp. 31
Character Stringsp. 34
Commentsp. 35
Summaryp. 36
Chapter 3 Variables, Simple Types, and Operatorsp. 37
Introductionp. 37
Variables and Constantsp. 38
The Constantp. 38
The Variablep. 41
Getting the Message Outp. 45
The Write and Writeln Statementsp. 45
Another Form--The Writeln Statementp. 47
Data Typesp. 49
Simple Data Typesp. 49
Ordinal Datap. 49
Realp. 55
Operatorsp. 56
Arithmetic Operationsp. 58
Integer and Real Expressionsp. 59
Assignment Compatibilityp. 60
Div and Modp. 60
Output Reduxp. 61
Formatting Outputp. 61
Outputting Expressionsp. 63
Summaryp. 64
Chapter 4 More Corep. 65
Introductionp. 65
Input--Read and Readlnp. 66
Readp. 66
Readlnp. 70
The String Data Typep. 71
Quotesp. 74
String Operatorsp. 74
Projectsp. 76
Project 1p. 76
Project 2p. 77
Complex Data Typesp. 80
Structured Data Typesp. 81
Pointer Data Typesp. 81
Procedural Data Typesp. 82
Variant Data Typesp. 83
Summaryp. 83
Chapter 5 Making Decisionsp. 85
Introductionp. 85
Making Choicesp. 86
Boolean Expressionsp. 87
Complex Boolean Expressionsp. 88
The IF .. THEN .. ELSE Control Structurep. 90
Project 1p. 92
Expanding Project 1p. 94
Nested IF Statementsp. 97
Project 3p. 100
Tye Type Declarationp. 102
Setsp. 103
Unionp. 106
Intersectionp. 106
Differencep. 107
The Case Statementp. 108
Project 4p. 111
Summaryp. 114
Chapter 6 Loopingp. 117
Introductionp. 117
Repeating Statementsp. 118
Designing a Loopp. 119
The Body of the Loopp. 120
The Initialization Statementsp. 121
The Conditions for Exitp. 121
Controlled by User Inputp. 122
Ask Before the Next Iterationp. 123
Loop Termination By a Sentinel Valuep. 124
Running Out of Inputp. 124
Design the Loop Before Implementationp. 125
The While Statementp. 125
Using the Debuggerp. 127
Project 1p. 132
The For Statementp. 135
Modifying the Control Variablep. 136
Project 2p. 138
The Repeat Statementp. 140
Summaryp. 142
Chapter 7 Procedures and Functionsp. 145
Introductionp. 145
Dividing a Program into Routinesp. 146
Introducing Proceduresp. 147
Scopep. 150
Change Machinep. 154
Parametersp. 160
Functionsp. 168
Summaryp. 176
Chapter 8 Units and Abstract Data Typesp. 179
Introductionp. 179
Unitsp. 180
Coding the Unitp. 181
The Interface Sectionp. 182
Usesp. 182
The Implementation Sectionp. 182
The Initialization Sectionp. 183
The Finalization Sectionp. 184
The Currency Converterp. 184
On Second Thoughtp. 188
Units Summaryp. 191
Abstract Data Typesp. 192
Defining a New Data Typep. 192
Ordinal Data Typesp. 193
Enumerated Data Typesp. 195
Summaryp. 197
Chapter 9 Arraysp. 199
Introductionp. 199
The Arrayp. 200
Taking Advantage of the Subscriptp. 203
Pascal Stringsp. 211
Complex Array Structuresp. 213
Multidimensional Arraysp. 214
The Airline Reservation Projectp. 215
Making a Reservationp. 217
I Wanna Window Seat!!!p. 222
Summaryp. 232
Chapter 10 Records and Other Data Structuresp. 233
Introductionp. 233
The Record Structurep. 234
Arrays of Recordsp. 239
Putting the Records to Workp. 240
The Data Structuresp. 241
Adding a Recordp. 241
The With Statementp. 243
Displaying a Studentp. 244
Modifying a Student Recordp. 245
Variant Recordsp. 257
The Stack and the Queuep. 260
The Stackp. 260
Let's Play Cardsp. 264
The Queuep. 266
Customer Service is Job One!p. 267
Summaryp. 275
Chapter 11 Introduction to Object-Oriented Programming with Object Pascalp. 277
Introductionp. 277
TwhatIsAnObject = Objectp. 279
Using a Classp. 281
Inheritancep. 281
Encapsulationp. 282
Polymorphismp. 283
Virtual Versus Static Methodsp. 283
Your First Classp. 284
Define the Classp. 284
Add the Methodsp. 287
Propertiesp. 292
Visibility Specifiersp. 294
Extending Objectsp. 300
Summaryp. 302
Chapter 12 File Handling and Pointers in Object Pascalp. 305
Introductionp. 305
This is Going into Your Permanent Filep. 306
The Five Steps of File Handlingp. 307
Create a Variablep. 307
Assign the Filenamep. 308
Open the Filep. 308
Write Data to the Filep. 309
Close the Filep. 309
Non-Destructive Writing to a Filep. 310
Reading a Text Filep. 312
Error Handlingp. 313
IOResultp. 313
Exceptionsp. 314
EOF and EOLNp. 316
Translation, Pleasep. 317
Non-Text Filesp. 327
Reading and Writing Typed Filesp. 327
Random Accessp. 328
The Students Filep. 330
Pointersp. 332
Pointer Variablesp. 332
Creating the Dynamic Variablep. 333
The Linked Listp. 334
Summaryp. 338
Appendix A Reserved Wordsp. 341
Indexp. 353

Google Preview