继承分类;
虚表继承
class D{
public :
d(){
}
~d(){
}
private:
};
单重继承
class D{
public :
d(){
}
~d(){
}
private:
};
class C: public c{
public :
C(){
}
~C(){
}
private:
};
多重继承
class D{
public :
d(){
}
~d(){
}
private:
};
class C: public D{
public :
C(){
}
~C(){
}
private:
};
class B: public C{
public :
B(){
}
~B(){
}
private:
};
菱形继承
class D{
public :
d(){
}
~d(){
}
private:
};
class C{
public :
C(){
}
~C(){
}
private:
};
class DC: public d,public C{
public :
C(){
}
~C(){
}
private:
};
对应的x64汇编不再写出