Default Constructor is constructor that does not have any parameters - Constructor and Destructor

Q.  A Constructor that does not have any parameters is called____________ Constructor.
- Published on 17 Jul 15

a. Custom
b. Dynamic
c. Static
d. Default

ANSWER: Default
 

    Discussion

  • jyoti somani   -Posted on 19 Nov 16
    custom constructor also doesnot have any parameter so it will also consider as.....
  • Raj   -Posted on 12 Oct 15
    A Constructor that does not have any parameters is called as default constructor. If you have not provided a default constructor then compiler automatically provides the default constructor.

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.)