Explain the use of virtual destructor?
No Answer is Posted For this Question
Be the First to Post Answer
How does a C++ structure differ from a C++ class?
Is there any difference between int [] a and int a [] in c++?
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
What is a local reference?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
Do you know about latest advancements in C++ ?
0 Answers Agilent, ZS Associates,
How to write Multithreaded applications using C++?
2 Answers Honeywell, TCS, Wipro,
What is the use of default constructor?
What is difference between class and structure in c++?
"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55"
9 Answers College School Exams Tests, HCL,
What is time_t c++?
What is function prototyping? What are its advantages?