Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConAuto
  8. {
  9. class KlasseAuto
  10. {
  11. public double DblTankfuellung { get; set; }
  12. public int IntKmStand { get; set; }
  13. public string StrAutomarke { get; private set; }
  14. public string StrFarbe { get; set; }
  15. public double DblReifendruck { get; set; }
  16.  
  17.  
  18. public KlasseAuto() // Standartkonstruktor
  19. {
  20. }
  21.  
  22. public KlasseAuto(string marke) //Konstuktor || Automarke übergeben
  23. {
  24. this.StrAutomarke = marke;
  25. }
  26.  
  27. public void StreckeFahren(int strecke) //Methode || Strecke fahren
  28. {
  29. this.IntKmStand = this.IntKmStand + strecke;
  30.  
  31. }
  32.  
  33. public void Tanken(double tanken) // Methode || Tanken
  34. {
  35. this.DblTankfuellung = this.DblTankfuellung + tanken;
  36. }
  37.  
  38. public void Lackieren(string Farbe)
  39. {
  40. this.StrFarbe = Farbe;
  41. }
  42.  
  43. public void ReifenAufpumpen(double druck)
  44. {
  45. this.DblReifendruck = this.DblReifendruck + druck;
  46. }
  47. }
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement