文档介绍:Turbo Pascal
Object-Oriented Programming Guide
Copyright © 1989 All rights reserved.
Borland International, Inc.
1800 Green Hills Road
. Box 660001
Scotts Valley, CA 95066-0001
Disclaimer:
This volume is not plete text of the original book, and has
been scanned from the original, converted through OCR, and
errors have been corrected by hand. Any remaining errors are
mine, overlooked in this process, despite efforts to find and
correct them.
I undertook this project because of repeatedly expressed wishes
by many on the Borland newsgroups to see this material made
available again. Borland kindly granted permission to republish,
and this is the result. I hope that it may be of benefit to still more
developers than it was in its original incarnation.
- William Meyer
Introduction
Turbo Pascal gives you the power and efficiency of object-oriented program-
ming at turbo speed. In addition to the Turbo Pascal features you e to rely
on, this new version offers you the programming techniques of the future:
• both static objects for maximum efficiency and dynamic objects for maximum
run-time flexibility
• both static and virtual methods constructors and destructors that create and
deallocate objects (which saves programming time and improves readability of
your code)
• object constants—static object data is initialized automatically
• greater speed—Turbo Pascal even faster
• an improved overlay manager (which lets overlays run faster, with less disk I/O)
• enhanced help screens that let you cut and paste examples into your code
• an online tutorial to introduce you to Turbo Pascal's integrated development
environment
The object-oriented extensions in Turbo Pascal were inspired by Larry Tesler’s
“Object Pascal Report”(Apple, 1985) and Bjarne Stroustrup’s “The C++ Program-
ming Language”(1986, Addison-Wesley).
Introduction 1
Introduction
About this manual
This manual contains information on the new obj