Constructors and Destructors

    0
    374

    1. A constructor that accepts __________ parameters is called the default constructor.

    Correct! Wrong!

    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?

    Correct! Wrong!

    3. Can a class have virtual destructor?

    Correct! Wrong!

    4. Destructor has the same name as the constructor and it is preceded by ______ .

    Correct! Wrong!

    5. For automatic objects, constructors and destructors are called each time the objects

    Correct! Wrong!

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here