Mittwoch, 24. August 2011

Ferien Aufgabe C# Teil1 Reifen cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Reifen
{
    class Reifen
    {
        private string Profil;
        private string Zoll;
        private string Marke;


        public Reifen(string Marke_1, string Zoll_1, string Profil_1)
        {
            Marke = Marke_1; Zoll = Zoll_1; Profil = Profil_1;

            Console.WriteLine("Es wurde ein Reifen mit der Marke : {0}\n Zoll: {1}\n Profil:{2}  ", Marke, Zoll, Profil);
        }



        public string Reifen_Marke
        {
            get { return Marke; }
            set { Marke = value; }
        }

        public double Reifen_Zoll
        {
            get { return Zoll; }
            set { Zoll = value; }
        }

        public double Reifen_Profil
        {
            get { return Profil; }
            set { Profil = value; }
        }
    }
}

Keine Kommentare:

Kommentar veröffentlichen