please explain this function in first constructor
Please explain first constructor
Hi @awasthi_123,
The first constructor is to call the second constructor. We do not want to define the size of the array every time so we define DEFAULT_CAPACITY variable which is the default size of array and then call the second constructor with this size.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.