Consider a method is Leaf that returns true if a binary tree is a one-node tree-that is, if it consists of only a leaf-and returns false otherwise.
a. Specify the method is Leaf.
b. If is Leaf were not a method of a class of binary trees, would a client of the class be able to implement is Leaf ? Explain.