Open In App

Python | Functions | Question 5

Last Updated : 28 Jun, 2021
Like Article
Like
Save
Share
Report

What is called when a function is defined inside a class?

(A)

Module

(B)

Class

(C)

Another Function

(D)

Method


Answer: (D)

Explanation:

Explanation: When a function is defined inside a class then it is called Method. The method is accessible to data that is contained within the class.


Quiz of this Question
Please comment below if you find anything wrong in the above post


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads