Skip to content

Commit e2f9f64

Browse files
committed
Merge branch 'issue/8' of github.com:rambasnet/Object-Oriented-Programming-Design-Patterns into issue/8
2 parents 8227a5a + 0882643 commit e2f9f64

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

demo-assignments/A1-OOP/cold/src/cold.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ def main() -> None:
9999
sol.solve(sys.stdin)
100100

101101

102-
if __name__ == "__main__":
103-
Solution.main() # pragma: no cover
102+
if __name__ == "__main__": # pragma: no cover
103+
Solution.main()
-176 Bytes
Loading
-8.6 KB
Loading

demo-assignments/A1-OOP/cold/uml/solution.plantuml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Solution {
1010
- _temps: List[Temperature]
1111
+ n: int {get; }
1212
.. Overloaded Methods ..
13-
+ __init__(): None
13+
- __init__(): None
1414
.. Instance Methods ..
1515
+ read_data(source: Any): None
1616
+ find_answer(): int

demo-assignments/A1-OOP/cold/uml/temperature.plantuml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ class Temperature {
1010
+ temp: int {get; set;}
1111
+ unit: str {get; set;}
1212
.. Overloaded Methods ..
13-
+ __init__(side1: float, side2: float, side3: float): None
14-
+ __str__(): str
15-
+ __repr__(): str
16-
+ __lt__(other: Temperature): bool
17-
+ __gt__(other: Temperature): bool
18-
+ __eq__(other: object): bool
19-
+ __le__(other: Temperature): bool
20-
+ __ge__(other: Temperature): bool
13+
- __init__(float, float, float): None
14+
- __str__(): str
15+
- __repr__(): str
16+
- __lt__(Temperature): bool
17+
- __gt__(Temperature): bool
18+
- __eq__(Temperature): bool
19+
- __le__(Temperature): bool
20+
- __ge__(Temperature): bool
2121
.. Instance Methods ..
2222
+ is_negative(): bool
2323
}

demo-assignments/A2-ABC/egypt/uml/solution.plantuml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ scale 2
33
title "UML Class Diagram"
44
class Solution {
55
.. Class Variables ..
6-
_instance: Solution
6+
- _instance: Solution
77
.. Instance Variables ..
8-
_data: List[List[int]]
9-
_triangles: List[Triangle]
10-
_answer: List[str]
8+
- _data: List[List[int]]
9+
- _triangles: List[Triangle]
10+
- _answer: List[str]
1111
.. Class Methods ..
1212
+ get_instance(): Solution | None
1313
+ main(): None
1414
+ reset_instance(): None
1515
.. Instance Methods ..
16-
+ __init__(data: List[List[int]]): None
16+
- __init__(data: List[List[int]]): None
1717
+ read_input(): None
1818
+ data(): List[List[int]]
1919
+ answer(): str

0 commit comments

Comments
 (0)