Such as a function of, public void a [] how to call this function in the b,
CodePudding user response:
Top, do me a favor?CodePudding user response:
B inherits the method availableIn the b method to create a one of a or b type a member variable or introduced into a class object in the method, also can call the method, the premise is a private method
CodePudding user response:
New out an instance of A in B A, then a.a (); Is implemented in B calls A method in A ()CodePudding user response: