EECS 280 Lecture Notes - Lecture 11: Member Variable, In C, Compile Time

34 views3 pages

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.

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