What is constructor and destructor in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

how to swap two numbers with out using temp variable

12 Answers   Global eProcure, TCS,


#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }

1 Answers   Infosys,


What is the difference between cin.read() and cin.getline()?

0 Answers  


What is class invariant?

1 Answers  


What are register variables?

0 Answers  






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

2 Answers   Quark,


what do you mean by volatile variable?

0 Answers  


Why do we use double in c++?

0 Answers  


difference between c and c++?

38 Answers   Cognizant, IBM, Infosys, Oracle, Sarva Shiksha Abhiyan, Wipro,


What are exceptions c++?

0 Answers  


What is wrapper class in c++?

0 Answers  


What is the difference between "overloading" and "overridding"?

3 Answers  


Categories