Difference between implicit call and explicit call in constructor overloading
Answers
Answered by
5
Here is your answer.
______________________________
-------------–--–---–––------------------――――-...…
______________________________
-------------–--–---–––------------------――――-...…
Attachments:
Answered by
2
Explanation:
- Implicit default constructor is a constructor which gets created automatically by the JVM (which initializes the data members with default initial values) incase the class do not have a constructor explicitly defined by the user. Explicit default constructor is a non-parameterised constructor defined by the programmer to initialize the data-members within a class with default initial values.
Constructor:
- Constructor is a function that have the same name as the class and is automatically invoked during creation of an object.
Similar questions