Is recursion allowed in inline functions?
No Answer is Posted For this Question
Be the First to Post Answer
What happens when you make call 'delete this;'?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is the v-ptr?
what is data encapsulation in C++?
Can we declare a base-class destructor as virtual?
Why #include is used?
What are the two types of polymorphism?
What is the oldest programming language?
What is data types c++?
Write a note about the virtual member function?
Why would you use pointers in c++?
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