10-什么是向上转型?什么是向下转型?

这道题目一般出现在(笔试-选择题)

举例说明即可:

向上转型:Person person = new Student(); 安全的
向下转型:Teacher teacher = (Teacher)person; 不安全的