Descripción
Create a Python class with multiple methods
File Template: ❌
Prefix
class:methods
Scopes
python
Snippet de código
class ${1:MyClass}:
def __init__(self, ${2:attribute}):
self.$2 = $2
def get_$2(self):
return self.$2
def set_$2(self, $2):
self.$2 = $2
def display(self):
print(f"$2: {self.$2}")