all repos — notes @ 4f37604a1e2dd0d7517673896f04ec09448cf306

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: