What is the output of this program?
Call to display function of class A and class B is made by using dynamic method dispatch, by
using this method a call to an overridden function is resolved at run time, rather than at compilation time.
output:
$ javac Dynamic_dispatch.java
$ java Dynamic_dispatch
A B
Submit Your Solution hear: