jeudi 23 janvier 2020

Android and design patterns good practices

I am designing an app on Android but I realised that I cannot implement certain design patterns such as Visitor i.e. So I was wondering if "creating my own structure" is a good practice. What I mean by creating my own structure is making a class of mine inherit from an "Android class" just like this. And, in this case, use MyImageButton as my "top" class instead of ImageButton (Of course that in this case a visitor would be useless, I used it just for the demonstration).

If this is not a good practice, what can I do to implement this kind of design patterns? Thank you.

Aucun commentaire:

Enregistrer un commentaire