Logo 
Search:

C++ Programming FAQ

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

Which code segments will convert a class object namely sample to type double?

  Shared By: Adaliz Fischer    Date: Sep 06    Category: C++ Programming    Views: 751

Answer:

Options

a) sample :: operator double() { }
b) operator double() { }
c) sample :: operator double();
d) operator double();

Answer : a) sample :: operator double() { }

Share: 
 


Related Topics:

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


Tagged: