Examveda

Which of the following Python code creates an empty class?

A.

class A:
    return

B.

class A:
    pass

C.

class A:

D. It is not possible to create an empty class

Answer: Option B


This Question Belongs to Python Program >> Classes And Objects In Python

Join The Discussion

Related Questions on Classes and Objects in Python