Home > Back-end >  Why after subclasses override the superclass constructor method to perform the subclass
Why after subclasses override the superclass constructor method to perform the subclass

Time:12-29

Create the object is not to be executed after the constructor, the default execution inside super (), is the parent class constructor, and structure in the parent class has method (100), a method is called here, I just don't understand, why here call subclasses of rewriting method, rather than the parent class of the existing method ()
Read
  • Related