How The Constructors And Destructors Can Be Differentiated #187
How the constructors and destructors can be differentiated?
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.1.
How the constructors and destructors can be differentiated?
Destructor have a return type but constructor doesn’t
Destructors can’t be defined by the programmer, but constructors can be defined
Destructors are preceded with a tilde (~) symbol, and constructor doesn’t
Destructors are same as constructors in syntax