Height Balanced Tree

In the video bhaiya has made a class name HBPair then it is called by function isHeightBalanced().

// HBPair isHeightBalanced(node* root){

I want to ask that in above code is it costructor or what ??

hello @ashwani225
no that is not a contructor , that is a function only.

your should remember some point about construtor
a) name of constructor is same as class name
b) they dont have any return type

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.