Do you know what is overriding?
No Answer is Posted For this Question
Be the First to Post Answer
How a new operator differs from the operator new?
Explain overriding.
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
What is a .lib file in c++?
What is a base class?
Why is null pointer used?
What are iterators in c++?
What is a multiset c++?
Write a function to find the nth item from the end of a linked list in a single pass.
What is string in c++ programming?
What is the disadvantage of using a macro?
How do you master coding?