Demo entry 6729476

Caixa_Eletronico(3)

   

Submitted by anonymous on Apr 02, 2018 at 22:27
Language: C#. Code size: 1.0 kB.

namespace ProjCaixaEletronico{
    class Conta{
        private int num=1;
        private double sal=3000;
        public int Num{get{return this.num;}set{this.num=value;}}//Numero
        public Cliente Tit{get;set;}//Titular
        public double Sal{get{return this.sal;} protected set{this.sal=value;}}//Saldo

        /*public void valor_saque(double valor_conta){
            this.Sal=2000;}*/
        /*public void mt_sacar(double x){
            double y=0;
            y=this.sal-x;
            //return y;}*/
        /*public double mt_depo(double x)
        {
            double y = 0;
            y = this.sal+x;
            return y;}*/

      /*public Conta(double Sal){
            this.Sal=2000;}*/

        public void mt_sacar(double x){
            //double y=0;
            this.sal-= x;
            //return y;
        }

        public void mt_depo(double x){
            //double y = 0;
            this.sal += x;
            //return y;
        }

    }
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).