How is data hiding achieved in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between a copy constructor and an overloaded assignment operator?
4 Answers Belzabar, Citrix, Microsoft, Wipro,
Is c++ the most powerful language?
Explain Text Manipulation Routines?
Why #include is used?
What is difference between initialization and assignment?
12 Answers HCL, HP, Infosys,
What are vectors used for in c++?
How to implement is-a and has-a class relationships?
What is the use of cmath in c++?
Can you use the function fprintf() to display the output on the screen?
Show the application of a dynamic array with the help of an example.
What is the difference between C and CPP?
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