Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Which of the following statements are true about copy constructors? - Select option

  Shared By: Lucy Brown    Date: Jul 09    Category: C++ Programming    Views: 1741

Answer:

I. It declares and initializes an object from another object
II. It will not be useful when arguments are passed by value
III. It can be used to pass arguments by reference
IV. The compiler provides its own copy constructor, if it is not defined.

Options

a) I, II, IV
b) All are correct
c) Both II and III
d) III only

Answer : b) All are correct

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: