Java, Design Patterns, Structural Design Pattern, Software Engineering.
void main(String[] args) { Book book1 = new ProxyBook("Java Programming", "premium"); Book book2 = new ProxyBook("Design Patterns", "basic"); book1.display(); // Displaying book: Java Programming book2.display(); // You do not have access to this book. } } When to Use Proxy Pattern The Proxy