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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!