One of the most important capabilities that a method provides is method overriding – the same name (e.g., area ) can be used for multiple different kinds of classes. This allows the sending objects to invoke behaviors and to delegate the implementation of those behaviors to the receiving object .
What is the importance of using methods in a program?
One of the most important capabilities that a method provides is method overriding – the same name (e.g., area ) can be used for multiple different kinds of classes. This allows the sending objects to invoke behaviors and to delegate the implementation of those behaviors to the receiving object .