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 Dec. 13, 2024 by Teachoo
Answer:
A function defined inside a class is called a method.
So, the correct answer is (d).
About the Author
Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo