title: Classes in R from a python background
body: <p>I am a python programmer, and this is my first day working with R. </p>
  
  <p>I am trying to write a class with a constructor and three methods, and I am struggling.</p>
  
  <p>In python, it's easy:</p>
  
  <pre><code> class MyClass:
        def __init__(self):
             self.variableA = 1
             self.variableB = 2
  
        def hello(self):
             return "Hello"
  
        def goodbye(self):
             return "Goodbye"
  
        def ohDear(self):
             return "Have no clue"
  </code></pre>
  
  <p>I can't find anything that shows me how to do something as simple as this in R. I would appreciate it if someone could show me one way to do this ?</p>
  
  <p>Many thanks</p>