5 years ago in C++ Functions

Which of the following statement is correct?

[A] Constructors can have default parameters.
[B] Constructors cannot have default parameters.
[C] Constructors cannot have more than one default parameter.
[D] Constructors can have at most five default parameters.
Loading...
Next Question

Overall Stats

Attempted 103
Correct 29
Incorrect 16
Viewed 58

Answers

Guest
Guest
Tooba Mustafa
Tooba Mustafa - 1 month ago

Tooba Mustafa is saying Constructors can have default parameters. is correct answer

Saisha Shetty
Saisha Shetty - 1 month ago

Saisha Shetty is saying Constructors can have default parameters. is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying Constructors cannot have more than one default parameter. is correct answer

Sarita Nauriya
Sarita Nauriya - 4 months ago

Sarita Nauriya from Hyderabad, India is saying Constructors cannot have default parameters. is correct answer

[CULT]๛ RP9
[CULT]๛ RP9 - 5 months ago

[CULT]๛ RP9 from Pune, India is saying Constructors cannot have more than one default parameter. is correct answer

Related Questions

Which member function of class cannot modify its objects attributes ?

  • [A] friend functions
  • [B] Private member functions
  • [C] Constant member functions
  • [D] Static member functions

Using turbo C++ library function can ?

  • [A] color any closed figure
  • [B] draw lines and circles
  • [C] write in variety of fonts and sizes
  • [D] all of above

Which of the following statement is correct?

  • [A] C++ enables to define functions that take constants as an argument.
  • [B] We cannot change the argument of the function that that are declared as constant.
  • [C] Both A and B.
  • [D] We cannot use the constant while defining the function.

Which of the following type of function is an ideal candidate for being declared inline ?

  • [A] A function that is small and is not called frequently
  • [B] A function that is small and is called frequently
  • [C] A function that is not small and is not called frequently
  • [D] A function that is not small and is called frequently

Which of the following statement is incorrect?

  • [A] Default arguments can be provided for pointers to functions.
  • [B] A function can have all its arguments as default.
  • [C] Default argument cannot be provided for pointers to functions.
  • [D] A default argument cannot be redefined in later declaration.