logo

Crowdly

Browser

Add to Chrome

Se consideră clasa număr cu următoarea structură: class numar { private: int num...

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

Se consideră clasa număr cu următoarea structură:

class numar {

private:

int num;

public:

numar( ) {num=0;} //(1)

numar(int n) {num=n;} //(2)

numar(numar n) {n=n.num;} //(3)

int val ( ) {return num;}

};

numar *p=new numar;

delete p; 

De câte ori este apelat destructorul clasei număr ?

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

Want instant access to all verified answers on else.fcim.utm.md?

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

Browser

Add to Chrome