What is called when a function is defined inside a class?
(a) Module
(b) Class
(c) Another function
(d) Method
Answer:
A function defined inside a class is called a method.
So, the correct answer is (d).
Get live Maths 1-on-1 Classs - Class 6 to 12