Which of the following statements are not true about destructor?

1. It is invoked when object goes out of the scope

2. Like constructor, it can also have parameters

3. It can be virtual

4. It can be declared in private section

5. It bears same name as that of the class and precedes Lambda sign.








a. Only 2, 3, 5

b. Only 2, 3, 4

c. Only 2, 4, 5

d. Only 3, 4, 5












ANSWER: Only 2, 4, 5

No comments:

Post a Comment

The advantages of Outsourcing Web Development Services

In the present digital world, acquiring a solid web presence is essential for companies to flourish. A well designed site is much much more ...