dimanche 9 avril 2017

How child classes communicate in Twin Design Pattern?

I was studying the Twin design pattern. I got the concept but when it came to implementation I could'nt fully understand how the child classes communicate with each other. I found a 'Ball game' example in java still I could not figure it out from that.

Can you explain how the child classes communicate or exchange messages? It would be helpful if you can provide one or two simple examples in java.

Image of twin design pattern structure

Aucun commentaire:

Enregistrer un commentaire