As I understood both Adapter and Proxy patterns make two distinct/different classes/objects compatible with each for communication. And bot
Difference between Adapter pattern and Proxy Pattern
ADAPTER PATTERN
PROXY PATTERN
UNDERSTANDING THROUGH CODE
class client{
public void main(){
//proxy pattern
IServer iserver = new proxy();
iserver.invoke();
//adapter pattern
IAdapter iadapter = new adapter();
iserver.iadapter();
}
}
class server implements IServer{
public void invoke(){}
}
class proxy implments IServer{
public void invoke(){}
}
class adapter implements IAdapter{
public void invoke(){}
}
Reference: Difference between Adapter pattern and Proxy Pattern