Assume that class B is derived from class A, and method M ha…
Assume that class B is derived from class A, and method M has a class A reference variable as a parameter. This means that method M cannot accept a reference to a class B object as an argument.
Read Details