MCQOPTIONS
Bookmark
Saved Bookmarks
→
C++ Programming
→
Constructors And Destructors in C++ Programming
→
What is syntax of defining a destructor of class A..
1.
What is syntax of defining a destructor of class A?
A.
A(){}
B.
~A(){}
C.
A::A(){}
D.
~A(){};
Answer» C. A::A(){}
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
When destructors are called?
What is syntax of defining a destructor of class A?
What is the role of destructors in Classes?
How many types of constructors are there in C++?
How constructors are different from other member functions of the class?
How many parameters does a default constructor require?
What happens if a user forgets to define a constructor inside a class?
What is a copy constructor?
Why constructors are efficient instead of a function init() defined by the user to initialize the data members of an object?
What is the role of a constructor in classes?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply