Код: Выделить всё
BКод: Выделить всё
public abstract class Vector implements Element { }
public abstract class VectorialSpace implements Ring { }
public abstract class PolyCoeff extends Vector { }
public class RingPoly extends VectorialSpace { }
public interface Constant { }
public interface BaseRing { }
public interface Element extends Constant { }
public interface Ring extends BaseRing { }
- В каждом классе общий тип c реализует константу интерфейса и общий тип B реализует интерфейс Basering .- не единственный подкласс вектора в моем рабочем пространстве, а также Ringpoly единственный подкласс VectialSpace .
Код: Выделить всё
PolyCoeff
Код: Выделить всё
public class Homomorphism< C1 extends Constant, B1 extends BaseRing,
C2 extends Constant, B2 extends BaseRing > {
public static
Homomorphism ringToPolyRingHomeo(B ring){
[...]
}
}
< /code>
Представленные ошибки: < /p>
Bound mismatch: The type PolyCoeff is not a valid substitute for the bounded parameter of the type Homomorphism< /code> < /p>
Bound mismatch: The type RingPoly is not a valid substitute for the bounded parameter of the type Homomorphism< /code> < /p>
PolyCoeffПодробнее здесь: https://stackoverflow.com/questions/374 ... -mistmatch