Browse Source

Spender Klasse fertig

master
amadoubahaa68134 6 years ago
parent
commit
4c73ee72ea
4 changed files with 22 additions and 11 deletions
  1. 2
    2
      .idea/misc.xml
  2. 0
    8
      src/Credentials.java
  3. 0
    1
      src/Person.java
  4. 20
    0
      src/Spender.java

+ 2
- 2
.idea/misc.xml View File

@@ -3,7 +3,7 @@
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</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>
</project>

+ 0
- 8
src/Credentials.java View File

@@ -30,20 +30,12 @@ public class Credentials {
System.out.println(pw);

}

compare(name, pw);

}

return false;

}

private void compare(String name, String pw) {


}





+ 0
- 1
src/Person.java View File

@@ -6,7 +6,6 @@ public class Person {
public int age;

Person(String name, String vname, int age){

this.name = name;
this.vname = vname;
this.age = age;

+ 20
- 0
src/Spender.java View File

@@ -0,0 +1,20 @@
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;
}

}

Loading…
Cancel
Save