All pastes #199952 Raw Edit

Stuff

public text v1 · immutable
#199952 ·published 2006-10-12 21:11 UTC
rendered paste body
    class Kunde
    {
        private string p_strName = string.Empty;

        public Kunde()
        {
            // NOP
        }

        public Kunde(Kunde kunde)
        {
            this.Name = kunde.Name;
        }

        public string Name
        {
            get { return p_strName; }
            set { p_strName = value; }
        }
    }

---------------------------------------

    class KundePrint : Kunde
    {
        public KundePrint(Kunde k)
            : base(k)
        {
        }

        public int NameLength
        {
            get { return Name.Length; }
        }
    }