Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 3)
3.
How can you create a class variable?
Answer: Option
Explanation:
Class variables in Python are declared outside any method in the class and are shared by all instances of the class. They are typically defined with the
static
keyword.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers