Question
What is a conversion constructor?

Answers

A constructor that accepts one argument of a different type.
The compiler uses this idiom as one way to infer conversion rules for a class. A constructor with more than one argument and with default argument values can be interpreted by the compiler as a conversion constructor when the compiler is looking for an object of the type and sees an object of the type of the constructor’s first argument.   Your Comment






Search
Can you Answer!!
  • Q Government by wealthy
  • Q Head of the State Bank of India?
  • Q Discuss the health and social hazards associated with alcoholism.
  • Q What is the maximum size of a single lv?
  • Q What is the command to see your grails version?
  • Q What is footwear fashion design?
  • Q Explain process design for industrial scale synthesis of nanoparticles
  • Q How many syllables are in a Haiku (a type of Japanese verse)?
  • Q What is the currency of Pakistan?
  • Q Define PV effect.
  • Q Remedy Finance is done by