EECS 280 Lecture Notes - Lecture 11: Member Variable, In C, Compile Time
Document Summary
Data abstraction let"s us separate what a type is from how it is implemented. Adts can protect and hide our code from other users; it also helps keeping data and relevant functions together. The purpose of a container is to hold other objects. An array can hold ints, a vector can hold ints . Capacity - number of items we could store in the set; Size - amount of boxes that is occupied. Static - means that there is only one; all instances of the class share this member variable. Static member functions don"t live on the stack with the other member variables; it is stored elsewhere in memory because there is only one copy. It can be accessed by other member functions, but there is only one copy. there is only one copy. This means that the value of elts_size could be anything, but our representation invariant says it must be zero.