I have an object of class A. I want to override one of the methods of that class. Can this be done?
More specifically, I have an object that is being injected into a field. I need to override one of the methods, before I can use it.
I am trying to see if Reflection could help solve the problem. Note that the method that I am trying override does not dependent on private variables of that class.
以上就是In Java, given an object, is it possible to override one of the methods?的详细内容，更多请关注web前端其它相关文章！