C++ Programming - Constructors and Destructors - Discussion
Discussion Forum : Constructors and Destructors - General Questions (Q.No. 18)
18.
Which of the following cannot be declared as virtual?
Discussion:
20 comments Page 2 of 2.
Sai Ajay said:
7 years ago
Destructors can be virtual.
If I'm wrong, please correct me with right explanation.
If I'm wrong, please correct me with right explanation.
Sachin said:
1 decade ago
Constructor can not be virtual. But destructors can be declared virtual.
Aryan said:
6 years ago
I don't think that data members must also need to be non-virtual. Right?
Vikas said:
1 decade ago
Agree with sachin destructors can be declared virtual.
Kamelsh singh said:
1 decade ago
How come data members can be declared as virtual ?
Afroz said:
1 decade ago
How can you say destructor declare as a virtual?
Bhavik said:
1 decade ago
But destructors can be declared virtual right?
Omkar said:
1 decade ago
Why destructor declare as a virtual?
Shubham solanki said:
6 years ago
Destructors can be virtual.
Venky said:
1 decade ago
What is a virtual ?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers