![]() |
Recursive Classes - Design Pattern needed
I've got a class defined that instantiates itself internally. (It's a
simple binary tree implementation). Are there any OO gurus here can help me to design the proper class structure so that I can track the item count (# of nodes in the b-tree) and other statistics that would apply to all instantiations ? Do I just need to create a separate "parent" class that is instantiated on the first instance of the bintree class ? I would guess the parent class would house a Collection to track each instance of the bintree, as well as the total count of the nodes.....correct ? Am I on the right track ? |
Recursive Classes - Design Pattern needed
|
All times are GMT +1. The time now is 05:33 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com