logo

Crowdly

Browser

Add to Chrome

Знайдіть помилку в реалізації оператора присвоєння: a)  class SQUARE b) ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Знайдіть

помилку в реалізації оператора присвоєння:

a) 

class SQUARE

b) 

{

c) 

  int* itsSide;

d) 

  public:

e) 

    SQUARE

operator =(const SQUARE&

rhs)

f) 

    {

g) 

      itsSide = new int;

h) 

      *itsSide = rhs.GetSide();

i) 

      return this;

j) 

    }

k) 

 

l) 

    GetSide(){return *itsSide;}

m) 

};

  

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome