Computer Science, asked by pragyakriti2, 9 months ago

When a default constructor is considered as parameterized constructor ?​

Answers

Answered by nidhirandhawa7
3

Answer:

Regardless of any inheritance. But when PARAMETERIZED constructor is declared, then it's COMPULSION to write syntax of default constructor because while compiling the compiler needs to compile the function,etc. As we declared parameterized it would also search for non parameterized one cause it's its default format.

Explanation:

pls make it brainlest answer

Answered by arshadhameedtrz
1

Answer:

You can't call a default constructor once you've created a constructor that takes arguments. You'll have to create the no argument constructor yourself in order to make a call from the parameterized constructor.

Explanation:

PLEASE MARK ME AS THE BRAINLIEST

Similar questions