Answer the question
In order to leave comments, you need to log in
How to properly connect different interfaces?
Could you tell me how to implement such tasks correctly?
For simplicity, I will give an example:
There are two self-sufficient interfaces
interface Collection {}
interface Grid {}
class PeopleCollection implements Collection {}
class PeopleGrid implements Grid {}
interface GridAdapter {
void setGrid(Grid g);
void setCollection(Collection c);
void prepareCollectionToGrid();
}
class PeopleGridAdapter implements GridAdapter {}
PeopleGridAdapter.setCollection(CityCollection c);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question