001 C++思想

c++思想: 封装、继承、多态
    封装: 类思想 - 数据 + 操作
    继承: 类扩展
    多态: 接口重用
    
    
面向对象特征
    1 封装
    2 继承 
        (1) 继承(泛化): 实现继承、可视继承
        (2) 组合(聚合): 接口继承、纯虚类
    3 多态 
        (1) 覆盖: 虚函数、接口
        (2) 重载: 同名函数
        
        
        
https://blog.csdn.net/ruyue_ruyue/article/details/8211809

猜你喜欢

转载自www.cnblogs.com/huafan/p/11601225.html
001