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 |
Explain the concept of abstracion and encapsulation with one example. What is the difference between them?
What do you mean by Encapsulation?
What is the main purpose of inheritance law?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
why in java first invoke public static void main(String args[]) method????Why not public static void method1(String args[])??
what is the diffrence between c# and c++
what is data hiding.
Write a program to sort the number with different sorts in one program ??
Precompilation ?
What is the difference between a constructor and a destructor?
what is the use of template classes in c++
What is static modifier?