Problem:
Some classes are predefined, and their methods are designed to perform specific commonly encountered tasks.
Required:
Question 1- When should we use user-defined methods?
Question 2- When should we use predefined methods?
Please explain in detail when we should use user-defined methods.