contain new elements of an "instance" in javascript
<p>so I know there are tons of ways to simulate inheritance and other OO features.  I have chosen one to use for my project and am wondering if I can create an instance and add stuff to it and keep it contained (within braces).
Consider the following:</p>

<pre><code>function BaseClass(){
  &lt;this.stuff here&gt;
}

function SubClass(){
  this.superClass = BaseClass();
  this.superClass();

  &lt;this.other stuff here&gt;
}

myObj = new SubClass();
</code></pre>

<p>so myObj is an instance of SubClass.  I can add things to myObj like:</p>

<pre><code>myObj.blah = "funtimes";
</code></pre>

<p>What I would like is to be able to add stuff to the "instance" and keep it organized in braces much like the constructor.  psuedo code like:</p>

<pre><code>myObj = new SubClass() {
  var blah = "funtimes"
  &lt;more instance specific stuff here&gt;
}
</code></pre>

<p>Is something like this possible?
Thanks!</p>
