What class hierarchy would make this code valid? L *l = new MO); 1 = new N(); N *n = new M(); Select one: There is no hi
Posted: Mon May 02, 2022 12:05 pm
What class hierarchy would make this code valid? L *l = new MO); 1 = new N(); N *n = new M(); Select one: There is no hierarchy that would allow this code. O Class M must be a subclass of class N, which must be a subclass of class L. O Class N must be a subclass of class M, which must be a subclass of class L. O Classes M and N must both be direct subclasses of class L.