logo

Crowdly

¿Cuál de las opciones de abajo es correcta atendiendo al siguiente código? p...

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

¿Cuál de las opciones de

abajo es correcta atendiendo al siguiente código?

public class Point<T extends Float> {

  private T x, y;

  public

Point (T x, T

y) {

     this.x = x;

     this.y = y;

  }

  public

String

toString() {

     return this.x + " " + this.y;

  }

  public static void

main(String[]

args) {

    Point<Double> p = new Point<Double>(2.0, -3.5);

     System.out.println(p);

  }

}

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!