title: Adding/Overriding/Edit Body Methods to Class (Smalltalk - Squeak)
body: <p>How can I <strong>add new methods</strong> or <strong>remove methods</strong> of a <strong>specific Class</strong>? Or, if I try to add a method which already exists so it will override it (although at this case I can just remove the old one and add the new one which is the same)?</p>
  
  <p>Can it be done when the method itself is represented as a String? (I mean doing it without using external files and such but just have the method written as string).</p>
  
  <p>For example a method that gets a class, a symbol and a string that is the code of the method and adds this method to aClass and if exists so override the old one:</p>
  
  <pre><code>in: aClass add: aSymbol sourceCode: aString
  </code></pre>
  
  <p>and usage example:</p>
  
  <pre><code>in: ClassA add: #something sourceCode: 'self subclassResponsibility'
  </code></pre>