logo

Crowdly

Aufgabe : Es existiert die KlasseA. Welche Ausgaben erzeugt die unten abgebildet...

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

Aufgabe: Es existiert die KlasseA. Welche Ausgaben erzeugt die unten abgebildete main Methode.

public class KlasseA {

    public int calc() {

        return 4;

    }

    public int calc(int a) {

        return 2*a;

    }

    public int calc(int a,int b) {

        return a*b;

    }

}

public static void main(String[] args)  {

        KlasseA a1=new KlasseA();

        System.out.println(a1.calc(2));

        System.out.println(a1.calc(2,4));

        System.out.println(a1.calc(a1.calc(23),4));

        System.out.println(a1.calc(a1.calc(21),a1.calc()));

}

1. Zeile:

2. Zeile:

3. Zeile:

4. Zeile:

More questions like this

Want instant access to all verified answers on moodle.mm-bbs.de?

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