jeudi 26 avril 2018

What is best way to reduce circular dependancy in following pseudo code

I am typically end of design my software architecture as follows, which is a dead end.

import ExtraWorld,SuperWorld;

class World{

 constructor(){
     let a = new ExtraWorld()
     let b = new SuperWorld()
 }
}
----
class SuperWorld extends World{
}

class ExtraWorld extends World{
}

How I can redesign the architecture and rename so that it makes much sense

Aucun commentaire:

Enregistrer un commentaire