Can a Parent call Child Class methods?

Viewed 77468

Referring here

A is a precompiled Java class (I also have the source file) B is a Java class that I am authoring
B extends A.

How can logic be implemented such that A can call the methods that B has.
The following are the conditions:

  • I don't want to touch A(only as a last option though that is if no other solution exists).
  • I don't want to use reflection.

As stated, if needed I could modify A. What could be the possible solution either way?

3 Answers
Related