What is the difference between a "copy constructor" and an "assignment operator" in C++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

4 Answers   Webyog,


What is c++ coding?

0 Answers  


What does override mean in c++?

0 Answers  


What are different types of polymorphism supported by C++

2 Answers   CA, GameLoft,






sir there is some problem with nokia5130c-2,when we are trying to upload movies from net then there is a error occurred"FORMAT NOT SUPPORTED" bt its all ready in 3gp format.please tell me what i do now?

2 Answers   Nokia,


How do I use arrays in c++?

0 Answers  


Can you Mention some Application of C/C++?

0 Answers  


Give example of a pure virtual function in c++?

0 Answers  


Can constructor be private in c++?

0 Answers  


What are the new features that iso/ansi c++ has added to original c++ specifications?

0 Answers  


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

2 Answers   Quark,


Categories