Home > Back-end >  I have a question: if the parent class reference point in a subclass object modelling (back) the par
I have a question: if the parent class reference point in a subclass object modelling (back) the par

Time:12-09

I have a question: if the parent class reference point in a subclass object modelling (back) the parent class reference cannot use is not defined in the parent class method, when to call member peculiar to subclass method to do?

CodePudding user response:

Into a subclass type

CodePudding user response:

I thought about the problem of optimization measures,

CodePudding user response:

refer to the second floor life is music really cute ah response:
I thought about the problem of optimization measures,



The reference before adding a forced transition

A parent class B subclass

A=new B ();

(B) a
  • Related