What are containers in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is operator overloading in c++ example?
Why should we use null or zero in a program?
Are c and c++ different?
What is data abstraction? How is it different from data encapsulation?
Explain the use of vtable.
Describe friend function & its advantages.
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
explain the reference variable in c++?
Write a note about the virtual member function?
Can a constructor be private?
which is the easy way to divide any integer by 2?
What are static member functions?