why heapify function is made under private part?
Heapify - heap class implementation
@sktg99
Since that function will only be called by other member functions of the class , it makes more sense to declare it as private. If declared public , it could be called in the main() by using class’s object and that could create problems. There is no need to make it available outside class. Hence we declare it private.