Interview Question: Self-Destruction

Sample Question #255 (programming – C++)

Which of the following are false regarding destructors:

  1. Destructors are not inherited
  2. A class may have only one destructor
  3. Destructors may not be invoked directly
  4. The return type of a destructor is not "void"
  5. Destructors cannot accept arguments
This entry was posted in Sample Qs. Bookmark the permalink.

2 Responses to Interview Question: Self-Destruction

  1. Brett says:

    1. False. You can do virtual inheritance.
    3. False. A destructor can be invoked directly.

  2. says:

    3. the original statement is right.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s