help me lord
This commit is contained in:
		
							parent
							
								
									fb196693e4
								
							
						
					
					
						commit
						db6b2a2a6e
					
				
					 42 changed files with 342 additions and 0 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								Code/Steiner/abstractAufgabe/src/App.class
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Code/Steiner/abstractAufgabe/src/App.class
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										10
									
								
								Code/Steiner/abstractAufgabe/src/App.java
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Code/Steiner/abstractAufgabe/src/App.java
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| // Hauptprogramm App | ||||
| public class App { | ||||
|     public static void main(String[] args) { | ||||
|         Auto auto = new Auto("Ferrari"); | ||||
|         Boot boot = new Boot("Titanic"); | ||||
| 
 | ||||
|         auto.bewegen(); | ||||
|         boot.bewegen(); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								Code/Steiner/abstractAufgabe/src/Auto.class
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Code/Steiner/abstractAufgabe/src/Auto.class
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										12
									
								
								Code/Steiner/abstractAufgabe/src/Auto.java
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								Code/Steiner/abstractAufgabe/src/Auto.java
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| 
 | ||||
| // Klasse Auto | ||||
| public class Auto extends Fahrzeug { | ||||
|     public Auto(String name) { | ||||
|         super(name); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void bewegen() { | ||||
|         System.out.println("Das Auto " + getName() + " fährt auf der Strasse."); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								Code/Steiner/abstractAufgabe/src/Boot.class
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Code/Steiner/abstractAufgabe/src/Boot.class
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										11
									
								
								Code/Steiner/abstractAufgabe/src/Boot.java
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Code/Steiner/abstractAufgabe/src/Boot.java
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| // Klasse Boot | ||||
| public class Boot extends Fahrzeug { | ||||
|     public Boot(String name) { | ||||
|         super(name); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void bewegen() { | ||||
|         System.out.println("Das Boot " + getName() + " fährt auf dem Wasser."); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								Code/Steiner/abstractAufgabe/src/Fahrzeug.class
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Code/Steiner/abstractAufgabe/src/Fahrzeug.class
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										14
									
								
								Code/Steiner/abstractAufgabe/src/Fahrzeug.java
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Code/Steiner/abstractAufgabe/src/Fahrzeug.java
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| // Basisklasse Fahrzeug | ||||
| public abstract class Fahrzeug { | ||||
|     private String name; | ||||
| 
 | ||||
|     public Fahrzeug(String name) { | ||||
|         this.name = name; | ||||
|     } | ||||
| 
 | ||||
|     public String getName() { | ||||
|         return name; | ||||
|     } | ||||
| 
 | ||||
|     public abstract void bewegen(); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sage The DM
						Sage The DM