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).
Last updated at April 16, 2024 by Teachoo
Answer:
A function defined inside a class is called a method.
So, the correct answer is (d).