//[] operator Overloading #include #include class matrix { private: int mat[4]; public: matrix() { mat[0]=1; mat[1]=2; mat[2]=3; mat[3]=4; } int operator[](int index) { if(index>=0&&index<=3) return mat[index]; else { cout<<"Index Out of Array Limits!"; exit(0); } } }; int main() { matrix m; cout<<"\nSafe Array Access:\nm[0]= "<