help a guy out

Consider the following class:

1: class GrabBag {
2: public:
3: void open();
4: void close();
5: bool isOpen();
6: void add (Junk j);
7: Junk removeRandomItem();
8: private:
9: vector<Junk> contents;
10: };
Which lines in this code contain a violation of const correctness?
There's no constness there at all. No const - impossible to violate const correctness.
In other words, (almost) every line is a potential violation.

You surely know what the const correctness means and therefore can explain whether it is possible to conclusively answer the question based solely on the class definition?
its multiple choice and I can select any of them but I have to select at least one
Which lines (intuitively) cannot be const? Why?
Put another way, which of those functions look like they might try to change something in the class?
Topic archived. No new replies allowed.