Binary Search Tree

My question is, can we use class to implement binary search tree? Because in most of the website, i have found that most of them using struct. I just need to know the proper way to do binary search tree using class. Thank you. Much appreciated.
The only difference between struct and class is the default visibility of members.

Anything you can do in a struct, you can do in a class.
So, yes, you can use a class to implement a BST.
AbstractionAnon


Thank you very much. Much appreciated.
Topic archived. No new replies allowed.