Why are we declaring the vector as private member of the class heap?
About the access specifier of vector
Hey @Senjuti256, can you please show me the code so that I can tell you why inky we needed vector for that implementation?
the code is in the video itself.It is basically the implementation of heap using vector
Hey @Senjuti256 we are declaring vector as a private member because we don’t want our user to know through which data structure we have implemented heap.
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.