CS 4448 - Spring 1998
Object-Oriented Programming and Design
Lecture 7.1
- Homework #6?
- More indepth discussion of topics in the book. We are all
resources and need to use them/us.
- A quick design question: a Vector how to create it directly from a
number.
- Get back to the more abstract level(not just C++) after this week.
Chapter 6
- Implicit Conversion 6.2.1
- Avoiding the creation of temp via additional methods P.178
Chapter 7
- Basics of allocation and deallocation of memory.
- Permanent, stack, and free store space vs. Heap.
- How can memory be a security problem? Initialization/deanitilization
- Giving back the memory to the wrong part. Moving Stack memory
into the Heap, etc. Danger! C vs C++ calls
- delete is safe for null but free from C is not.
- Checking for success of new. Do you do it and should you?
- Side effects won't happen if new fails. Ex: c++
- Garbage Collection not part of C++ language requires VM. P.219
- Drivers - DMA channels on the PC, special memory needed, init.
Adam Jonathan Griff,
computer@griffmonster.com
Copyright © University of Colorado. All rights reserved.
Revised: February 24, 1998