Dynamically allocation in classes

why do we have to make use of dynamic allocation in clases?? what are its advantages??

Hello @guptakeshav885 the main advantage of using dynamic allocation is that during allocation we dont know what is the memory size we should form but when dynamically allocated we can form according to it only.
Happy Learning!!

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.