Add override and final to some classes.

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