Just contact the Delphi friend, perhaps the most interesting is its rich, powerful VCL (visual Component Library). It's exciting to just throw a few widgets on a form, and even without writing code, it's easy to make a useful program. However, VCL is only a small part of Delphi, Delphi excellent far more than the performance of the VCL on. If you just stay in the use of VCL this phase, then you can never become a real master Delphi. Remember, must surpass VCL, only then can reach the Delphi core.
So, behind the vcl of Delphi, what exactly is hidden? This article discusses two of the more advanced Delphi themes: OOP and database programming.
This article assumes that the reader already has the basic knowledge of Delphi programming, for example, familiar with Pascal language general syntax, master simple VCL use, will use Data-ware component to write basic database program, and so on. This article does not repeat the issue of VCL use.
1. OOP
OOP's English full name is Object oriented programming, translation is object-oriented programming. OOP is a very important programming idea. You may not be interested in this abstract thing, but almost any master will tell you: "Language is not important, the important thing is programming ideas." ”
As you know, Delphi is based on the language of object Pascal. This is the Borland in the traditional Pascal language to increase the object-oriented features developed, and specifically labeled the Word object, to show the difference with the traditional Pascal language, visible object-oriented technology to its impact. It can be said that Delphi is built on the basis of Object Pascal, and Object Pascal is built on object-oriented technology.
In fact, not only is delphi,oop also the basis for many other modern programming languages, such as C + +, Java (Visual Basic does not fully support OOP). Mastering OOP technology skillfully is the necessary condition of mastering Delphi, is the only way to enter the master's realm, and also one of the symbols of a mature programmer. After understanding OOP techniques, many of the things that have puzzled you in the past can be solved.