KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given a generic interface such as the following interface I<T> { void m(T t); } I can in C# create a class that implements I twice (or more) with different types supplied for T, e.g. class C : I<int>, I<String> { public void m(int i) { } public void m(String s) { } } This cannot be done in Java due to erasure of the generic type info, but can something like this be achieved in Scala?
Tags (comma-separated)
Save Edits
Cancel