We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f5ef1b + b02dd15 commit 419f316Copy full SHA for 419f316
python oriented programming
@@ -0,0 +1,34 @@
1
+class Mobile:
2
+ def make_call(self):
3
+ print("i am making a call")
4
+ def play_game(self):
5
+ print("i am playing games")
6
+
7
+m1=Mobile()
8
9
+m1.make_call()
10
11
+m1.play_game()
12
13
14
+ def set_color(self,color):
15
+ self.color=color
16
+ def set_cost(self,cost):
17
+ self.cost=cost
18
+ def show_color(self):
19
+ print("black")
20
+ def show_price(self):
21
+ print("5000")
22
23
24
25
26
27
28
29
+m2=Mobile()
30
31
+m2.show_price()
32
33
+m2.show_color()
34
0 commit comments