logo

Crowdly

Browser

Add to Chrome

¿Qué ocurrirá en este código? class Prueba {     private int x;     Prueba...

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

¿Qué ocurrirá en este código?

class Prueba {

    private int x;

    Prueba(int x) {

        this.x = x;

    }

    void mostrar() {

        System.out.println(x);

    }

}

public class Main {

    public static void main(String[] args) {

        Prueba p = new Prueba(5);

        p.mostrar();

    }

}

More questions like this

Want instant access to all verified answers on moodle.elpuig.xeill.net?

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

Browser

Add to Chrome