Examveda

What is the difference between a class variable and an instance variable in Python?

A. A class variable is shared among all instances of a class, while an instance variable is unique to each instance

B. They are the same

C. An instance variable is shared among all instances

D. A class variable is unique to each instance

Answer: Option A


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

Join The Discussion

Related Questions on Classes and Objects in Python