[Solved] How to access the object of the class where “=” operator is disabled?


Hmmm Some task…

Do one thing create a pointer of that class in your cpp file and assign memory to it using heap allocation.

class *myfield = (class*)malloc(no_of_instances*sizeof(class))

Now use that object which is there in your header file assign myfield’s address to that object(hope that is pointer)

Now it should work fine.. try and let me know..

7

solved How to access the object of the class where “=” operator is disabled?