0

I have a class Video that inherits from the class Multimedia. I know that this works:

Multimedia* multi;
Video* vid;
multi = vid;

But, I don't understand why the following code doesn't:

    Multimedia** m;
    Video** v;
    m = v;

error: invalid conversion from ‘Video**’ to ‘Multimedia**’ [-fpermissive]
J. M. Aziz
  • 29
  • 4

0 Answers0