Daniel Liu

Overview

The main idea for the facade design is hiding the complexities of the application. The user would use an interface/facade instead to access any methods.

Photo by Daniel von Appen on Unsplash

Implementation

Interface

// Animal.java
public interface Animal {
void species();
}

Interface for concrete class.

Class Implementation

// Dog.java
public class Dog implements Animal {
@Override…

--

--