What is constructor and destructor in c++?
No Answer is Posted For this Question
Be the First to Post Answer
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; } } }
What is the difference between cin.read() and cin.getline()?
What is class invariant?
What are register variables?
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
what do you mean by volatile variable?
Why do we use double in c++?
difference between c and c++?
38 Answers Cognizant, IBM, Infosys, Oracle, Sarva Shiksha Abhiyan, Wipro,
What are exceptions c++?
What is wrapper class in c++?
What is the difference between "overloading" and "overridding"?