BankAccount – instance vs static member field & method
CarSedan – public vs protected vs private
PersonStudent – method overriding
ShapePolymorphism – abstract class & method
Just another Kyoung Shin Park’s Lectures Sites site
BankAccount – instance vs static member field & method
CarSedan – public vs protected vs private
PersonStudent – method overriding
ShapePolymorphism – abstract class & method
http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html
| Modifier | Class | Package | Subclass | World | 
|---|---|---|---|---|
public | 
Y | Y | Y | Y | 
protected | 
Y | Y | Y | N | 
| no modifier | Y | Y | N | N | 
private | 
Y | N | N | N | 
Polymorphism (via overriding)
http://stackoverflow.com/questions/154577/polymorphism-vs-overriding-vs-overloading
Lecture5