Ericsson Interview Question

There was a class in which there was defined a function which deletes an object. In main function there was created an instance of class, which then is tried to delete using function declared inside class.

Interview Answer

Anonymous

Jul 25, 2017

There is a possibility of fault if we declare an array of objects, and we try to delete only one object