Explanation: A copy constructor takes reference to an object of the same class as itself as an argument. 10) Destructor is defined as _______
A. Const matrix X(m, n);
B. matrix:: ~matrix(){ }
C. matrix:: matrix(void)
D. matrix()
Answer:A
Explanation: A copy constructor takes reference to an object of the same class as itself as an argument. 10) Destructor is defined as _______
A. Const matrix X(m, n); B. matrix:: ~matrix(){ } C. matrix:: matrix(void) D. matrix()
Explanation: A destructor is used to destroy the objects that have been created by a constructor. Like a constructor, the destructor is a member function whose name is same as the class name but is preceded by a tilde. Sanfoundry Global Education & Learning Series – Object Oriented System Design.