We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abb8cc6 + 53bcf28 commit 541bbefCopy full SHA for 541bbef
Python-with-class/Class_with_attribute.py
@@ -0,0 +1,23 @@
1
+
2
+#################################################
3
+# Python Class with Attribute Example
4
5
6
+class class_with_Attribute:
7
+#class attribute Declaration
8
+ type="Normal"
9
10
+t1 = class_with_Attribute()
11
+t2 = class_with_Attribute()
12
13
+#Getting Output of Class Attribute
14
+print (t1.type,t2.type)
15
+#Output would be
16
+# Normal Normal
17
18
+#updating class Attribute value
19
+testing.type="Advance"
20
21
22
23
+# Advance Advance
0 commit comments