Endabgabe #20

Merged
i22035 merged 137 commits from Endabgabe into main 2024-07-05 11:59:47 +00:00
3 changed files with 6 additions and 25 deletions
Showing only changes of commit 1bcf396f95 - Show all commits

View File

@ -3,10 +3,10 @@ public class CallMethodFromObjekt {
public int firstInt;
public Car ca;
public int speed(){
public int speed() {
return ca.getSpeed();
}
}
public class Car{
@ -16,5 +16,4 @@ public class Car{
return speed;
}
}
}

View File

@ -1,11 +1,12 @@
public class CorrectMemberAccess{
public class CorrectMemberAccess {
public Car c;
public int test(){
public int test() {
return c.getSpeed();
}
}
private class Car{
@ -15,5 +16,4 @@ private class Car{
return speed;
}
}
}

View File

@ -17,25 +17,8 @@ public class FullTest {
for (int i = 0; i < 5; i++) {
}
}
// void logicalOperations() {
// // Logische UND-Operation
// if (b && a > 5) {
//// System.out.println("a ist größer als 5 und b ist wahr");
// }
//
// // Logische ODER-Operation
// if (b || a < 5) {
//// System.out.println("b ist wahr oder a ist kleiner als 5");
// }
// }
// public static void main(String[] args) {
// AllFeaturesClassExample obj = new AllFeaturesClassExample(12, true, 'a');
// obj.controlStructures();
// }
}
public class Test {
@ -60,6 +43,5 @@ public class Car {
return speed;
}
}
}