Why is it so that we can have virtual constructors but we
cannot have virtual destructors?
Answers were Sorted based on User's Feedback
Answer / sachinmundhra
vptr gets initialize in constructor. So in that case we
cannot have virtual constructor.
| Is This Answer Correct ? | 5 Yes | 0 No |
write a c++ code of diagonal matrix.
What do you mean by public, private, protected and friendly?
What are the important components of cohesion?
Difference between vector and array
in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C
What is the difference between const int *ptr and int const *ptr???
what's the basic's in dot net
what is polymorphism?
ambiguity regulation of multiple inheritance with example.
Differences between inline functions and non-inline functions?
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile
What is abstraction in oop with example?