Exemplo n.º 1
0
        public override double CalculateConsultationFee()
        {
            double consultationFee = 0;

            if (Illness.ToLower().Equals("fever") || Illness.ToLower().Equals("cough"))
            {
                consultationFee = base.CalculateConsultationFee() - 10;
            }
            else
            {
                consultationFee = base.CalculateConsultationFee() + 10;
            }
            return(consultationFee);
        }