lundi 29 novembre 2021

If two interfaces having same method name and signature and a class implements both interfaces then which design pattern is violated here?

Interface A{ Void draw(); }

Interface B{ Void draw(); }

Public class Demo implements A,B{ @override Public void draw(){ } }

Aucun commentaire:

Enregistrer un commentaire