Engineering Science 1036A/B Lecture 27: Class and Objects: Program Examples
Example: Array of objects
Example: Class and function
Example: Object and pointer
When de-referencing a pointer-object, it must be enclosed with round
brackets
Code wont compile otherwise
§
○
Example: Array of objects and DMA
Example: Reference objects and functions
Program Examples
Example: Array of objects
Example: Class and function
Example: Object and pointer
When de-referencing a pointer-object, it must be enclosed with round
brackets
Code wont compile otherwise
§
○
Example: Array of objects and DMA
Example: Reference objects and functions
Program Examples
Example: Array of objects
Example: Class and function
Example: Object and pointer
When de-referencing a pointer-object, it must be enclosed with round
brackets
Code wont compile otherwise
§
○
Example: Array of objects and DMA
Example: Reference objects and functions
Program Examples