Computer Science, asked by Mk549841, 11 months ago

during constructor overloading which is used in a parameterized constructor to call the default constructor?

Answers

Answered by alluarjun01
1
I'm working on semester project and I need help with the login/registration parts I'm studying file handling and my concepts are kind of weak when it comes to FH (File Handling) Anyway you guys can ...
Answered by smartbrainz
1

New() is the constructor overloading keyword which is used in a "parameterized constructor" to call the default constructor.

Explanation:

A "default constructor" is either of no parameters or with "parameters having default values". A constructor is called when an object is created by using the "new() keyword". Generally, it calls the "default constructor" if there is no constructor available in the class.

In the "parameterized constructor", it has a definite number of parameters to use with it.

Constructor overloading is a conception with multiple constructors having different parameters list to execute different tasks.

Similar questions