Political Science, asked by reddy999, 7 months ago

what are class members in python​

Answers

Answered by Anonymous
9

Answer:

In python it is possible to have class variables and instance variables of the same name. They are located separately in memory, and are accessed quite differently. The first set of variables (outside the __init__ function) are called class variables. These can be subsequently accessed using Node

Answered by amitesh66
3

\huge\bold\red\star\blue{answer:-}

Class − A user-defined prototype for an object that defines a set of attributes that characterize any object of the class. The attributes are data members (class variables and instance variables) and methods, accessed via dot notation. Class variable − A variable that is shared by all instances of a class.

Similar questions