Skip to content

Commit eb88b98

Browse files
committed
initial commit
0 parents  commit eb88b98

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

class properties.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#class properties
2+
class Boy:
3+
first_name=None
4+
second_name=None
5+
age=None
6+
7+
print(Boy.first_name)
8+
print(Boy.age)
9+
print(Boy.second_name)
10+
11+
Boy.title=None
12+
13+
print(Boy.title)

classes.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#object oriented programming
2+
3+
class Boy:
4+
pass
5+
6+
7+
boy=Boy()
8+
boy1=Boy()
9+
boy2=Boy()
10+
11+
print(boy)
12+
print(boy1)
13+
print(boy2)

0 commit comments

Comments
 (0)