Explicit keyword is optional decoration - Constructor and Destructor

Q.  The explicit keyword is an optional decoration for the constructors that takes exactly_____argument.
- Published on 19 Oct 15

a. No argument
b. Two
c. Three
d. One

ANSWER: One
 

    Discussion

  • Raj   -Posted on 08 Oct 15
    explicit keyword is an optional decoration for the constructors that take exactly one argument
  • Prajakta Pandit   -Posted on 20 Aug 15
    The explicit keyword takes only one argument and it applies to single-argument constructors that can be used in typecasting

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)