c++ - Inheritance misfit -


i ' m having 3 classes, a, b , c

class { };  class b : public { }; 

however, c has derived a, , b meantime:

i did:

class c : public a, public b { }; 

but didn't work!

the way have written currently, class c deriving a twice (once directly, , once indirectly b)


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -