Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 147

db4o-doc-7.4-2.fc13.i686.rpm

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Inheritance</title>
    <link rel="stylesheet" type="text/css" href="../../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>Inheritance</h1>

<p>Inheritance is a way to form new classes based on the
classes that have already been defined. </p><p>

For example:</p><p><img src="Inherit.Jpg"/><br>

</p><p>The derived class inherits all the fields and methods of the
base class. Note that in the object model, there is no distinction between
using system and user-defined types, so you can define sub-types of the system
types. This feature is known as extensibility.</p>

In the example above <code>getSignature</code> method
is overridden in the derived class - this is known as <b><i>polymorphism</i>. </b>The
ability of the object model to execute the correct method based on the type of
a class is called <b><i>dispatching</i>.</b><br></div>
    </div>
    <div id="footer">
					This revision (1) was last Modified 2007-06-02T19:30:55 by Tetyana.
				</div>
  </body>
</html>