operator [] method

String operator [](
  1. int idx
)

Implementation

String operator [](int idx) {
  return charAt(idx);
}