finish inheritance chapter section 3-6

Signed-off-by: xiehuc <xiehuc@gmail.com>