What is the difference between a copy constructor and an
overloaded assignment operator?
Answer Posted / guest
A copy constructor constructs a new object by using the
content of the argument object. An overloaded assignment
operator assigns the contents of an existing object to
another existing object of the same class.
Is This Answer Correct ? | 44 Yes | 12 No |
Post New Answer View All Answers
How java is different from c and c++?
Does c++ cost money?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What are the advantages of early binding?
Explain what is class definition in c++ ?
What is a friend function in c++?
What is near, far and huge pointers? How many bytes are occupied by them?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
Is c better than c++?
What do you mean by function pointer?
What are proxy objects in c++?
Explain what data encapsulation is in c++?
How can an improvement in the quality of software be done by try/catch/throw?
What is cout flush?
How many types of comments are there in c++?