virtual关键字

虚方法是已经实现了的,可以被子类覆盖,也可以不覆盖
posted @ 2022-07-04 11:43  celestially98  阅读(23)  评论(0)    收藏  举报