When Is It Advised To Have User Defined Destructor #191
When is it advised to have user defined destructor?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 Constructors and Destructors - OOPs MCQ: Destructors - Quiz No.2.
When is it advised to have user defined destructor?
When class contains some pointer to memory allocated in class
When a class contains static variables
When a class contains static functions
When a class is inheriting another class only