Get Started
1069

Q: What is conversion operator ?

  • उत्तर देखें
  • Workspace

Answer :
Explanation :

Class can have a public method for specific data type conversions.for example:class B{double value;public  B(int i )operator double(){return value;}};B BObject;double i = BObject; // assigning object to variable i of type double.now conversion operator gets called to assign the value.

सबसे विस्तृत एग्जाम तैयारी प्लेटफार्म

Examsbook Prep ऐप आज ही प्राप्त करें