Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Villa extends Hausteile {
- private int Garage;
- private int Flaeche_der_Garage;
- //Methoden:
- //Konsturktor
- public Villa (int ANZ_TUEREN, int ANZ_FENSTER, int GARAGE, int FLAECHE_DER_GARAGE){
- this.Tueren = ANZ_TUEREN;
- this.Fenster = ANZ_FENSTER;
- this.Garage = GARAGE;
- this.Flaeche_der_Garage = FLAECHE_DER_GARAGE;
- }
- //GET : Liefert die Fläche der Garage
- public int get_Flaeche_der_Garage(){
- return this.Flaeche_der_Garage;
- }
- //SET : Ändert die Fläche der Garage
- public void set_Flaeche_der_Garage(int NEUE_FLAECHE_DER_GARAGE){
- this.Flaeche_der_Garage = NEUE_FLAECHE_DER_GARAGE;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement