I want to add value using operator overloading or any other method. If I have class abc that class have 2 integer array I want to add value like this( abc object; object= object+4;)if I do this then 4 will be insert in array.
class abc{
 int array1[10];
 int array2[10];
 public:
 abc(int a[],int b[])
 {
     array1=a;
     array2=b;
  }
  };
  int main()
  {  
     int ar1[]={1,2,3};
     int ar2[]={4,5,6};
     abc object(ar1,ar2);
     object =object+4;
    }
I want if I write (object=object+4;)then this line will insert 4 in array1 at index 3, is it possible?
 
     
    