排序
Is super.super.method() allowed in Java?
Is super.super.method() allowed in Java?,I encountered this question through an interview process. I thought to myself that I haven’t seen this usage and wondered what might be th...
Dependency Inversion Principle
Dependency Inversion Principle,The last SOLID rule is the dependency inversion principle. According to Robert Martin's Agile Software Development: Principles, Patterns and Practice...
Builder Design Pattern
Builder Design Pattern,What is it? Builder is a creational design pattern that is used to construct a complex object from simple objects using a step-by-step approach Real World An...
Factory Design Pattern
Factory Design Pattern,What is it? Factory Method is a creational design pattern that defines an interface or abstract class for creating an object, but allows subclasses to decide...
Singleton Design Pattern
Singleton Design Pattern,Real-World Analogy Sun of our solar system is an excellent example of the singleton pattern. All the planets in our solar system have one sun and it has a ...