Anyone here who can help me with this code?
In your copy constructor you are allocating memory and copy the pointer, resulting in both arrays using the same memory and the allocated memory being leaked. The same applies to your copy assignment operator. Furthermore you probably don't want to reassign this.
Your tie constructor does leak as well.
Make sure your pointer points to valid memory and the access should be fine.
Apart from those concerns, you could make use of heap Ellison, since you know the type and size your array might be completely allocated inside your class by using T data[size];