Changes

Jump to: navigation, search

PHP Object Oriented Programming

14 bytes added, 20:08, 6 June 2007
Subclassing in PHP
}
</pre>
The important point to note here is that savingsAccount inherits all the members and methods of bankAccount and adds a new member (the interest rate).
echo "Interest Rate = " . $mySaveObj->getInterestRate() . '<br>';
?>
</pre>

Navigation menu