Understanding the code inherited format
to create a parent class
subclassed Teacher
Teacher can call the parent class's method
to view operating results
to create a teaching assistant classes inherit staff ,, class, the same content inside is left blank
assistant
美[əsɪstənt]
英[əsɪst (a) nt]
- . N Assistant; Assistant; Assistant Professor (college students studying abroad, Professor native language)
- . Adj assistant; pair
- Network salesman; auxiliary; salesperson
Assistant create objects, call the parent class's method
can also be run
so that the two subclasses reuse the parent class. To the effect multiplexing method