English

Which of the following class declaration is correct?

Advertisements

Question

Which of the following class declaration is correct?

Options

  • class class_name

  • class class_name<>

  • class class_name:

  • class class_name[ ]

MCQ
Advertisements

Solution

class class_name:

shaalaa.com
Introduction to Python Classes and Objects
  Is there an error in this question or solution?
Chapter 10: Python Classes and objects - Evaluation [Page 187]
Advertisements
Share
Notifications



      Forgot password?
Use app×