proszę sprawdzić następujące segmenty kodów: public interface ICountable { }
public class Counter<T>
where T : ICountable
{
public int Count(IEnumerable<T> items)
{
return 0;
Mam następujące klasy public class A<T>
{
}
public class B<T> : A<T>
{
}
public class C1 : B<string>
{
}
public class C2 : B<int>
{
}
Co chciałbym aby jest mieć metodę, która może przyjąć
ja chce osiągnąć coś takiego w Javie, ale coraz skompilować błąd czasu: The method onMessage(TextMessage, Class) in the type AbstractTestLoader is not applicable for the arguments (TextMessage, Class)