Question-118: Which of the following statement is correct with regards to method and function ?
- Method is owned by data and it works on it.
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer: A,B,C,D,E
Exp:
Methods
- In most of the programming language, you will find that function and method refer the same thing.
- But in Python this is not the case.
- Method is specific kind of function.
- It looks and behave same as function.
- However, it differs in a way it acts and being invoked.
- Method is owned by data and it works on it.
-
You can access to full explanation to question and answer from this page.