In a composite design pattern, we process hierarchies in the manner shown below in UML.

But if you look at the Leaf class in the above figure, you will see that it has empty implementations of addComponent, removeComponent and getChild , since these methods do not apply to the Leaf node. What I really need to know is that we don’t need to implement empty / no-op methods?
: , , . , Leaf node , ? , , , , . Leaf node, parent-child, .