Can destructor be private?

Yes. Private destructor is useful for creating final class by preventing users to inherit from this class.

No comments: