I'm Matsushita from Dream Hanks. This time, I will explain about "Dependency Injection" and "extends".
Summary of serialized articles
By creating other classes or interface objects in the class you want to implement Something that allows you to use methods of other classes.
Assuming that the implemented class is a subclass (child class), inherit the superclass (parent class) (extends) To be able to use the methods of the parent class by doing
** In short, both want to be able to use the methods of other classes in the Java class they want to implement. ** ** Besides, "constructor injection", "setter / getter injection"