Final Exam Review > OOP Finals Reference Sheet.


Seneca College OOP 244 OOP FINALS REVIEW DYNAMIC ALLOCATION: ptr = new Type[size]; ptr = new Student[n]; ptr = new Student*[n + 1]; etc Dynamically allocated variables and objects, unlike statically allocated variables and objects, do not go out of scope when the braces it is defined in closes; must be explicitly deallocated by user. DYNAMIC DELLOCATION: delete ptr; delete[] ptr; ...[Show More]

Preview 1 out of 2 pages
Purchase this document to unlock the blurred part and the rest of the document

Unlock Now

Reviews( 0 )