博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
c++ 中的多重继承和其权限问题
阅读量:4217 次
发布时间:2019-05-26

本文共 802 字,大约阅读时间需要 2 分钟。

   There are three way to extend in c++,private,public and protected,If the method's permission is private,whatever the method of extend,the member is we can't use.protected like private in some aspects.The member in the class is not  available.But the class extends it the method in later class can use the member.This is the difference between private and protected.The constructor in the father class can't be extends .So we should write the constructor to construct the class .we can write the constructor by the constructor in the father class.Virtual method in the class can help us avoid the some extends from the father class .Object in the class usually be named as son object . The assignment we only can't make the son class equal father class . But we can make the father class equal son class.

转载地址:http://lftmi.baihongyu.com/

你可能感兴趣的文章
趣链 BitXHub跨链平台 (4)跨链网关“初介绍”
查看>>
C++ 字符串string操作
查看>>
MySQL必知必会 -- 了解SQL和MySQL
查看>>
MySQL必知必会 -- 数据检索
查看>>
MySQL必知必会 -- 排序检索数据 ORDER BY
查看>>
POJ 3087 解题报告
查看>>
POJ 2536 解题报告
查看>>
POJ 1154 解题报告
查看>>
POJ 1661 解题报告
查看>>
POJ 1101 解题报告
查看>>
ACM POJ catalogues[转载]
查看>>
常见的排序算法
查看>>
hdu 3460 Ancient Printer(trie tree)
查看>>
KMP
查看>>
poj 3863Business Center
查看>>
Android编译系统简要介绍和学习计划
查看>>
Android编译系统环境初始化过程分析
查看>>
user2eng 笔记
查看>>
DRM in Android
查看>>
ARC MRC 变换
查看>>