logo

Crowdly

Browser

Add to Chrome

SEW3a 2xHIT Objekte und eigene Klassen

Looking for SEW3a 2xHIT Objekte und eigene Klassen test answers and solutions? Browse our comprehensive collection of verified answers for SEW3a 2xHIT Objekte und eigene Klassen at elearning.tgm.ac.at.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Lässt sich folgender Quellcode kompilieren (d.h. sind die Methoden richtig überladen)?

1

2

3

4

5

6

7

8

public class

Wiederholung {

public static String concat(double

wert2, String wert1) {

return

wert1 + wert2;

}

public static String concat(double

wert1, String wert2) {

return

wert2 + wert1;

}

}

View this question

Lässt sich folgender Quellcode kompilieren (d.h. sind die Methoden richtig überladen)?

1

2

3

4

5

6

7

8

public class

Wiederholung {

public static String concat(String wert1, double

wert2) {

return

wert1 + wert2;

}

public static double concat(String wert2, double

wert1) {

return

wert1;

}

}

0%
0%
View this question

Durch welche der folgenden Bereiche der Kopfzeile einer Methode müssen sich Methoden, die überladen sind, unterscheiden (mehrere Antworten möglich)?

View this question

Welche Bereiche einer Methodenkopfzeile sind für das Überladen nicht relevant und werden daher vom Compiler in diesem Zusammenhang nicht beachtet (mehrere Antworten möglich)?

0%
0%
0%
0%
0%
0%
View this question

Welche der folgenden Bereiche der Kopfzeile einer Methode müssen beim Überladen gleich bleiben (mehrere Antworten möglich)?

View this question

Gib die Signatur folgender Methodendefinition an:

1

2

3

4

5

public class

Wiederholung {

public static String concat(String text, double

wert) {

return

text + wert;

}

}

View this question

Welche der folgenden Bereiche der Kopfzeile einer Methode gehören zur Signatur (mehrere Antworten möglich)?

0%
0%
0%
0%
0%
0%
View this question
View this question
View this question
View this question

Want instant access to all verified answers on elearning.tgm.ac.at?

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

Browser

Add to Chrome