Which of the following function never take any argument?

By Anjnee Bhatnagar|Updated : June 29th, 2022

Which of the following function never take any argument?

  1. Member Functions
  2. Friend Functions
  3. Default Constructor
  4. Const Functions

 

Answer: Option C. Default constructor

Default constructor never take any argument.

Solution

The answer to the question- which of the following function never take any argument is provided here. The default constructor never take any argument. However, a default constructor has a default argument along with default values. The main aim of the default constructor is to initialize objects. The member functions, friend functions, and const functions may take arguments.

☛ Related Questions:

Comments

write a comment

Follow us for latest updates