About the access specifier of vector

Why are we declaring the vector as private member of the class heap?

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

Okay @Senjuti256 I’ll see the code in the video, & let you know. Till then be patient.

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.