logo

Crowdly

Indica cual de las siguientes afirmaciones es verdadera sobre el siguiente códig...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Indica cual de las siguientes afirmaciones es verdadera sobre el siguiente código

class Punto<T> implements Comparable<Punto<T>>{

    private T x, y;

   

    public Punto (T x, T y) {

        this.x = x;

        this.y = y;

    }

    @Override public int compareTo(Punto<T> p) {

        if (this.x.compareTo(p.x) !=0 ) return this.x.compareTo(p.x);

        return this.y.compareTo(p.y);

    }

}

0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.uam.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!