A default constructor takes no arguments and gives the instance variables their default or a fixed initial value. A parameterised constructor takes arguments and initialises the object with the values passed. A copy constructor takes an object of the same class as its argument and initialises the new object with that object's values.
No teacher has reviewed this answer and no independent check has confirmed it, so it may contain mistakes. It is not CISCE's marking scheme.
Step-by-step solution
The step-by-step working and where each mark is earned are part of Board Pass. The question and answer stay free.
Try it
·Full solution
Only on this page: it is kept if you say you got it wrong, so you can compare later.
Board explanation
Watch a teacher solve this on the board, step by step, with voice. Then ask about any step.
AI Examiner
Not available for this question
No checked answer or marking scheme for this question yet.
Its answer has not been reviewed. The AI Examiner marks only questions that have an official marking scheme or an answer a teacher has reviewed.