0
So What am I doing wrong here?
Alright, I am having some trouble with this problem. "Drag and drop from the options below to define a generic class, which has a member method that returns the value of x." ___ Temp ___ { T x; public ___ Func() { ___ x; } } <x>, Static, Return, T, <T>, class, x I have already tried multiple solutions. This is the closest I think I have come; class Temp <T> { T x; public static Func() { return x; } } Any Ideas
1 Resposta
+ 1
You need the return type for the method, not static.