all repos — notes @ fc49d8bb920edd593cb4411f8af3772073bc61a9

My notes, written in md and LaTeX

java-schildt/08_inheritance.md

1 2 3 4 5 6 7 8 9 10 11 12
# Chapter 8 -- Inheritance 

## Points to remember
- Member access - a subclass inclues all of the superclass members, but it
cannot access those memebers of the superclass that are declared as `private`
- A major advantage of inheritance is that you can define a class with all
the common attributes, and then extend that class and add more specific 
attributes required
- A reference variable of a superclass cab be assigned a reference to any
subclass derived from that superclass

### Example: