Engineering Science 1036A/B Lecture 27: Class and Objects: Program Examples

26 views8 pages
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
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 8 pages and 3 million more documents.

Already have an account? Log in
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
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 8 pages and 3 million more documents.

Already have an account? Log in
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
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 8 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions