The object that I select is the tree. Before starting, I thought about the components of the tree, those things that we can know as a tree…