Class Variables
Learn about class variables.
We'll cover the following
Class variables
A class variable’s name starts with a @@
sign. It must be initialized before use. Its scope is limited to the class in which it’s created. In other words, it belongs to the whole class and can be accessed from anywhere in the class.
For example:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy