ckage com.codegym.task.task13.task1307;
/*
Parameterized interface
*/
public class Solution {
public static void main(String[] args) throws Exception {
}
interface SimpleObject<T> {
SimpleObject<T> getInstance();
}
class StringObject <T> implements SimpleObject<T> //write your code here
{
public void <T> getInstance()
{
}
}
}
where is the problem?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Clark
2 September 2019, 17:57
Implement the interface with the possibility to return a String. Change the <T> to <String> and implement the interfac in the class
0
Nobody
8 June 2019, 13:17
The method you override getInstance(), it should return a SimpleObject or a StringObject not void
0