<component name="JavaScriptSettings"> | <component name="JavaScriptSettings"> | ||||
<option name="languageLevel" value="ES6" /> | <option name="languageLevel" value="ES6" /> | ||||
</component> | </component> | ||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_10" default="true" project-jdk-name="10" project-jdk-type="JavaSDK"> | |||||
<output url="file://$PROJECT_DIR$/../gitchareswe" /> | |||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_3" default="false" project-jdk-name="10" project-jdk-type="JavaSDK"> | |||||
<output url="file://$USER_HOME$/gitchareswe" /> | |||||
</component> | </component> | ||||
</project> | </project> |
System.out.println(pw); | System.out.println(pw); | ||||
} | } | ||||
compare(name, pw); | |||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
private void compare(String name, String pw) { | |||||
} | |||||
public int age; | public int age; | ||||
Person(String name, String vname, int age){ | Person(String name, String vname, int age){ | ||||
this.name = name; | this.name = name; | ||||
this.vname = vname; | this.vname = vname; | ||||
this.age = age; | this.age = age; |
public class Spender extends Person{ | |||||
private int amount; | |||||
public Spender (String fname, String lname, int age, int summe){ | |||||
super(fname, lname, age); | |||||
this.amount = summe; | |||||
} | |||||
public void betragSetzen(int summe){ | |||||
if(summe > 0){ | |||||
amount = summe; | |||||
} | |||||
} | |||||
public int getAmount(){ | |||||
return amount; | |||||
} | |||||
} |