Computer Science, asked by dineshraj8055, 1 year ago

Differences between implicit and explicit constraints

Answers

Answered by sandhya60
6
The difference between implicit and explicit are
IMPLICIT is easily change one datatype to another it change small datatype to large datatype.
EXPLICIT Is difficult change it change large data type to small data type
Answered by CopyThat
1

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