Question: If there is a class below that has a pointer variable as a member and will be implemented as an array, class A {private: int

If there is a class below that has a pointer variable as a member and will be implemented as an array,

class A

{private:

int *myArray;

public: //member functions to do tasks. };

And there are two objects instantiated as follows in the main():

A obj1, obj2;

It is always a good idea to copy one object to another as follows?

obj2=obj1;

True or False? (C++)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!