64

继承-Dream-51CTO博客

 6 years ago
source link: http://blog.51cto.com/12951882/2069947
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
继承是面向对象复用的重要手段。通过继承定义一个类,继承是类型之间的关系建模,共享公有的东西,实现各自本质不同的东西。三种继承关系:public、protected、private三种继承关系下基类成员在派生类的访问关系变化。public继承:基类的public成员仍为public成员、基类的protected仍为protected成员、基类的private成员不可见。protected继承:基类的

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK