Discuss Forum

1.

Does constructor overloading include different return types for constructors to be overloaded ?

  • A. Yes, If return types are different, signature becomes different
  • B. Yes, If return types are different, signature becomes different
  • C. Yes, If return types are different, signature becomes different
  • D. Yes, If return types are different, signature becomes different

Answer: Option D

Explanation:

The constructors doesn't have any return type. When we can't have return type of a constructor, overloading based on the return type is not possible.

Post your comments here:

Name:
Mobile:
Email:(Optional)

» Your comments will be displayed only after manual approval.