1.8 - [Intro.Object] - [General. Object]

xiaoxiao2021-03-06  119

Please don't reprint this article; please don't re-publish this article in any form; please delete it within 24 hours of downloading this article; it is forbidden to use this article for commercial purposes.

1 General [Intro] 1.8 The C Object Model [Intro.Object] 1 General [General] 1.8 C Object Model [General. Object] The Constructs in A C Program Create, Destroy, Refer to, Access, And Manipulate Objects. An Objects. IS A Region of Storage. [NOTE: A Function IS Not An Object, Regardless of Whether Not It Occupies Storage In The Way That Objects Do.] An Object Is Created By Definition (3.1), by A New-Expression (5.3. 4) or by the implementation (12.2) when needed. The properties of an object are determined when the object is created. An object can have a name (clause 3). An object has a storage duration (3.7) which influences its lifetime ( 3.8) An object has a type (3.9) The term object type refers to the type which the object is created Some objects are polymorphic (10.3);... the implementation generates information associated with each such object that makes it possible to determine that Object's Type During Program Execution. for other objects, the interpretation of the value content there is determined BY TYPE OF THE EXPRESSITIONS (CLAUSE 5) Used to Access Them. Create, destroy, reference, access and operate objects in C program constructs. Object is a storage area. [Note: Regardless of whether the function occupies the same way as the object, the function is not an object. 】 Objects are defined (3.1), New Expression (5.3.4) or by implementation. When the object is created, the object's characteristics are determined. Objects can have names (chapter 3). The object has a storage type (3.7) and affects its survival (3.8). The object has a type (3.9). The term object type refers to the type used by the object. Some objects are polymorphic (10.3); in order to determine the type of objects in the program, implement the information generated for each such object. For other objects to access the types of objects (Chapter 5) of these objects, how to explain how they are stored.

Objects CAN Contain Other Objects, Called Sub-Objects. A Sub-Object Can Be a Member Sub-Object (9.2), A Base Class Sub - Object (Clause 10), or an Array Element. An Object That Is Not A Sub- Object of any Other Object is Called A Complete Object. Objects can contain other objects called sub-objects. The child object can be a member object (9.2), the base class sub-object (chapter 10), or an array element. Objects of child objects that are not any other object are called complete objects. For every object x, there is some object called the complete object of x, determined as follows: If x is a complete object, then x is the complete object of x Otherwise, the complete object of x is the complete object of the (. UNIQUE) Object That Contains x. For each object X, there is an object called X-based intact object, and it is determined as follows:

转载请注明原文地址:https://www.9cbs.com/read-99133.html

New Post(0)