Changes

Jump to: navigation, search

Ruby Object Oriented Programming

104 bytes added, 19:52, 28 November 2007
Class Inheritance
end
</pre>
We now have a new class, derived from BankAccount. This new subclass has everything the superclass had, plus a new property - the customer's phone number:
<pre>
account.accountNumber = "54321"
account.customerPhone = "555-123-5433"
54321
555-123-5433
</pre>

Navigation menu