Changes

Jump to navigation Jump to search
Line 9: Line 9:  
Polymorphism allows an object to appear as another object. This means that a complex object can appear to be a simple one. The example below shows that you can have a specific model of car, such as the [[Model T]], which looks like and acts like a normal car.
 
Polymorphism allows an object to appear as another object. This means that a complex object can appear to be a simple one. The example below shows that you can have a specific model of car, such as the [[Model T]], which looks like and acts like a normal car.
   −
=== Example ===
+
=== Example (Java)===
    
<pre>
 
<pre>
12

edits

Navigation menu