C++ Programming - Constructors and Destructors
Exercise : Constructors and Destructors - General Questions
- Constructors and Destructors - General Questions
- Constructors and Destructors - Programs
1.
A constructor that accepts __________ parameters is called the default constructor.
2.
What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?
3.
Can a class have virtual destructor?
4.
Destructor has the same name as the constructor and it is preceded by ______ .
5.
For automatic objects, constructors and destructors are called each time the objects
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers