The reason is because your class A only contains three variables, vindex_0, vindex_1 and v_index2. There is no variable ‘idx’.
You can not de-reference a variable by creating a string that matches the variable name.
The reason is because your class A only contains three variables, vindex_0, vindex_1 and v_index2. There is no variable ‘idx’.
You can not de-reference a variable by creating a string that matches the variable name.