Home > Back-end >  An abstract class casting problem
An abstract class casting problem

Time:10-24

The User is an abstract class, User_Imp is its implementation class,
Now I want to cast to a certain object, I want to convert the object to User_Imp types, but don't want to use the implementation class type in the code User_Imp, but want to use an abstract class User, you can achieve?
  • Related