What is the benefit of encapsulation?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between reference and pointer?
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 stack and heap memory?
What are the important differences between c++ and java?
What is a manipulator in c++?
What are friend functions in C++?
How do I exit turbo c++?
What is a reference in C++?
which of the following is not an secondary constant a) array b) real c) union
What do you mean by persistent and non persistent objects?
What does count ++ do in c++?
Will c++ be replaced?