What are virtual constructors/destructors?
Answer / Tasleem Khan
Virtual constructors and destructors in C++ allow derived classes to be instantiated and destroyed polymorphically. A virtual constructor is a constructor that can be overridden by the derived class, while a virtual destructor ensures that the destructor for the base class is always called when an object of the derived class is destroyed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain pass by value and pass by reference.
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it
Explain the virtual inheritance in c++.
What is an explicit constructor?
Why c++ does not have finally?
What is c++ coding?
how many rounds and wt type of questios ask in the written test for first round 2. tech. round 3. and futher rounds
What is encapsulation in C++? Give an example.
1 Answers HAL, Honeywell, Zomato,
Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)
What's the hardest coding language?
What is null pointer and void pointer and what is their use?
Is multimap sorted c++?