Python MCQs with Explanations

What is the method inside the class in python language?

  1. Object
  2. Function
  3. Arguement
  4. Attribute



Answer: 
Option b: Function


When function is defined inside a class, we need to call it as method.

Post a Comment

0 Comments