Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. public class Villa extends Hausteile {
  2.  
  3. private int Garage;
  4. private int Flaeche_der_Garage;
  5.  
  6. //Methoden:
  7.  
  8. //Konsturktor
  9. public Villa (int ANZ_TUEREN, int ANZ_FENSTER, int GARAGE, int FLAECHE_DER_GARAGE){
  10. this.Tueren = ANZ_TUEREN;
  11. this.Fenster = ANZ_FENSTER;
  12. this.Garage = GARAGE;
  13. this.Flaeche_der_Garage = FLAECHE_DER_GARAGE;
  14. }
  15.  
  16.  
  17. //GET : Liefert die Fläche der Garage
  18. public int get_Flaeche_der_Garage(){
  19. return this.Flaeche_der_Garage;
  20. }
  21.  
  22. //SET : Ändert die Fläche der Garage
  23. public void set_Flaeche_der_Garage(int NEUE_FLAECHE_DER_GARAGE){
  24. this.Flaeche_der_Garage = NEUE_FLAECHE_DER_GARAGE;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement