initial commit
This commit is contained in:
12
Python/OOP2/task6.py
Normal file
12
Python/OOP2/task6.py
Normal file
@ -0,0 +1,12 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Self
|
||||
|
||||
|
||||
@dataclass
|
||||
class Game:
|
||||
name: str
|
||||
year: int
|
||||
|
||||
# НАХ?
|
||||
def get_name(self: Self):
|
||||
return self.name
|
Reference in New Issue
Block a user