You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Status/Day_13.md
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
2
2
# Question 47
3
-
### Level 1
3
+
### Level 2
4
4
5
5
**Question:**
6
6
@@ -29,7 +29,7 @@ print aCircle.area()
29
29
----------------
30
30
31
31
# Question 48
32
-
### Level 1
32
+
### Level 2
33
33
34
34
**Question:**
35
35
@@ -59,3 +59,39 @@ print aRectangle.area()
59
59
```
60
60
----------------
61
61
62
+
# Question 49
63
+
### Level 2
64
+
65
+
**Question:**
66
+
67
+
***Define a class named Shape and its subclass Square. The Square class has an init function which takes a length as argument. Both classes have a area function which can print the area of the shape where Shape's area is 0 by default.***
68
+
69
+
----------------------
70
+
### Hints: To override a method in super class, we can define a method with the same name in the super class.
0 commit comments