C++
Programming and Technical
Programming
Basics
A Class can have how many destructor?
Options
1) 1
2) 2
3) 3
4) 4
Read Solution (Total 1)
A class can have atmost only 1 destructor.
9 years ago
Helpfull: Yes(1) No(0)
C++ Other Question
Which of the following statements is correct?
Options
1) First time method of a class is called, the constructor method is called.
2) Every time method of a class is called, the constructor method is called.
3) Every time an instance of a class is created, the constructor method is called.
4) None of the above
How do we declare a class as a friend of another class?