Classes
The purpose of this task is to create a basic class with a method, a constructor, an instance variable and how to instantiate it.
Classes
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
Python
class MyClass: def someMethod(self): """ Method """ self.variable = 1 def __init__(self): """ Constructor """ self.variable = 0 # Instance variable myclass = MyClass()