Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- private:
- int *_a;
- public:
- A() { /* initialize _a to something */ }
- ~A() { /* deallocate _a */ }
- int & setA(int i) const
- {
- _a[i] = 3;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement