How create full inheritance for objects (not only for prototypes)?
<p>I want to read the own properties of the parent from the children.</p>

<p>The parent object:</p>

<pre><code>var module = function() {
  this.group = new group('Male');
  this.thumb = new thumb('Loly');
}
</code></pre>

<p>The child objects:</p>

<pre><code>var group = function( name ) {
  this.name = name || '';
}
var thumb = function( name ) {
  this.name = name || '';
}
</code></pre>

<p>I want to write a <code>function extend (child, parent ) {...}</code>, that after applying <code>extend( group, module )</code> we have
<code>module.group.thumb == module.thumb</code>  (i.e. we can access all parent own properties from <code>module.group</code>). So next log doesn't print <strong>undefiend</strong> after <code>group.select()</code>:</p>

<pre><code>group.prototype.select = function( name ) {
      console.log( this.thumb);
}
</code></pre>

<p>Number of own properties of parent object may be uncertain, so simple linking is not suitable.</p>
