imagine these simple class:
Code:
class test
{
   public:
          void write(string a)
          {
                cout << a;
           }
};
(these class wasn't tested... it's for these question)
can avoid the class use the array operator('[]')?