What is a catch statement?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between global variables and local variable
What is binary search in c++?
How many types of casting are there in C++? When is a dynamic cast,static_cast,reinterpret cast used?
List out some of the OODBMS available?
When should we use container classes instead of arrays?
What is a unnitialised pointer?
What is iterator in c++?
Define macro.
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What is #include iostream in c++?
Does improper inheritance have a potential to wreck a project?
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