1、 The Viusal C+ brief introduction The object-oriented basic concept thinking mode decided solves the question way, the traditional software development uses from the top thought instruction programming, soon the goal divides into certain subtargets, the subtarget further divides again, can program u
2、ntil the goal the realization. The object-oriented technology brings the enormous change for the software design domain, it carries on the procedure development using the software object, the so-called object is contains the data and to the data manipulation code entity, or said is joins some in the
3、 traditional construction of data to be called the member function the process, thus entrusts with the object by the movement. But in the programming, the object has with the real world some kind of corresponding relations, we are precisely use this kind of relations to carry on the decomposition to
4、 the question. Looked from the program language angle that, in an object the code and (or) the data may be this object private, cannot by the object outside part direct visit. Thus the object provided one kind of high-level protection to prevent the procedure has nothing to do with the part wrong re
5、vision or has used wrongly the object private part. When attempts from the object to receive directly which protects internal data carries on the revision, by procedure rejection, only then the foreign service function material which provides through the object can to its internal data carry on the
6、essential processing, thus has guaranteed the data processing validity. Says from this significance, is called this kind of code and the data relation “the seal”. In other words, the seal is protects the object seal, is ability which hides the internal detail. Entrusts with heavy responsibility the
7、aspect in the emphasis software module, object-oriented technical and the standard industrial design rule has more similarities. In the object-oriented language, the kind is founds the object the key, in fact the kind described a race object public characteristic and the operation, but the object is
8、 the concrete realization kind. For example the compact car is a basic concept, it has the color, the geometry size, the dynamic performance characteristic. Then we may define is called “car” the kind, has parameters and so on color, geometry size, dynamic characteristic, as well as description auto
9、mobile under ambient condition state of motion member function. A concrete compact car is an object, the related parameter has the concrete value in this object, and may (ambient condition parameter) gain this vehicle concrete state of motion through the input explanation variable. The object-orient
10、ed technology brings the following profit for the software development: Reusability. From the very beginning the object production is for the reuse, completes object in next procedure development by part or completely reuse. Reliability. Because the object-oriented application procedure has containe
11、d through the test standard part, therefore more reliable. Because the massive codes originate from the mature reliable kind of storehouse, thus develops the procedure the additional code to reduce obviously newly, this is an important reason which the procedure reliability enhances. Continuity. Has
12、 object-oriented characteristic C+ and the C language has the very big compatibility, the C programmer may transit quite easily to the C+ language development work. The object-oriented language has the following basic characteristic: Access control. The object must be able to carry on the protection
13、 to its internal certain elements, is they only can by the internal use, but not exterior disturbance. In turn, the object must carry on the relation with other exterior elements, in order to carries on the operation to the object. In C+, the kind has private (private), protection (protected) and th
14、e public (public) three kind of visit mechanisms. Succession. Through to had the object to carry on the method which the increase or the part revise to establish the new object, to had the object to be possible to increase the data and the process, also may carry on to certain processes anew defines. The initial kind is called the base class, expands the kind from the base class to be called derived class.