Loading previews...| Microsoft PowerPoint | Download |
Super_and_sub-classes.pptx |
In this session we introduce inheritance - one of the cornerstone concepts of object oriented programming. We look at how to define super and sub-classes, how to maintain encapsulation using the super() constructor, and why it is useful to use substitution to hold references to sub-classes in references typed as their super-class.
| Added By: | |
|---|---|
| Added On: | 14 Nov 2011 00:09 |
| Tags: | java, inheritance, objects |
| Course codes: | COMP1004, COMP1202 |
| Permissions: | University |
| Link: | http://www.edshare.soton.ac.uk/8059/ |
| Downloads: | |
| Views: |
There are no actions available for this resource.
Loading previews...Super_and_sub-classes.pptx Microsoft PowerPoint | Download |
Super_and_sub-classes.pptx |
For any questions or feedback, please contact us.
Copyright © 2008-2010 University of Southampton