Operator Overloading Flashcards

1
Q

Örnek

A

Name class ımız var.

Name &Name::operator=(const Name &r)
{
len = r.len
delete[] pd;
pd = new char[len+1];
strcopy(pd,r.pd);

return *this

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

t

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly