Vidyalelo
Python · Q6

Classes and Objects in Python

Programming · Python · question 6

Q6

How can you define a method in a Python class?

A.
By defining a function within the class
Answer
B.
By using the method keyword
C.
By using the define keyword
D.
By using the def keyword

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board