What is c++ code?
No Answer is Posted For this Question
Be the First to Post Answer
What is a Default constructor?
How would you represent an error detected during constructor of an object?
when can we use virtual destructor?
7 Answers HCL, HP, Virage Logic,
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 the difference between Char a[ ]=”string” and char *a=”String”
What happens if an exception is throws from an, object's constructor and object's destructor?
Explain the concept of inheritance in C++.
Can you explain the term "resource acquisition is initialization?"
Why c++ is called oop?
What is meant by entry controlled loop?
0 Answers Agilent, ZS Associates,
What is std :: flush?
Describe exception handling concept with an example?