Global
Guideline
Comprehensive Job Interviews
Home
Interview Questions
Online Quiz Tests
Blog
Contact Us
Close Menu
Copyright © 2005 - 2024. All Rights Reserved
Search
Home
Interviews
C++ Language
C++ Constructors
C++ Constructors Question:
Can a class have virtual destructor?
A. Yes
B. No
Tweet
Share
WhatsApp
Download PDF
Answer:
Option A
Yes
Download C++ Constructors PDF
Read All 51 C++ Constructors Questions
Previous Question
Next Question
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?
A. Compile-time error.
B. Preprocessing error.
C. Runtime error.
D. Runtime exception.
Destructor has the same name as the constructor and it is preceded by ______ .
A. !
B. ?
C. ~
D. $