Question discussion

Which constructor is automatically invoked when a new object is created directly from an existing object of the same class, e.g. MyClass ob…

360Medium DSSSB TGT Computer Science 0 replies 1 views
0
Which constructor is automatically invoked when a new object is created directly from an existing object of the same class, e.g. MyClass obj2 = obj1;?
  • ADefault constructor
  • BParameterized constructor
  • CCopy constructor
  • DDestructor
Correct answer: C

Discussion 0

Nobody has replied yet. Start the discussion!